aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Dupree <id@isaac.cedarswampstudios.org>2009-08-23 03:02:06 +0000
committerIsaac Dupree <id@isaac.cedarswampstudios.org>2009-08-23 03:02:06 +0000
commit9dc98d20af5bbcb8bff7624b3d8c4d840ed6bb4e (patch)
treeda9993c735155e90e7adca82710a7c00d2a7fec4
parentd0d23a5627c7e5b9a699df1b44517841dff2d569 (diff)
Html: remove unnecessary+troublesome GHC. qualifications
-rw-r--r--src/Haddock/Backends/Html.hs24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs
index a420dac5..7c6e9ad1 100644
--- a/src/Haddock/Backends/Html.hs
+++ b/src/Haddock/Backends/Html.hs
@@ -71,7 +71,7 @@ ppHtml :: String
-> Maybe String -- package
-> [Interface]
-> FilePath -- destination directory
- -> Maybe (GHC.HsDoc GHC.RdrName) -- prologue text, maybe
+ -> Maybe (HsDoc GHC.RdrName) -- prologue text, maybe
-> Maybe String -- the Html Help format (--html-help)
-> SourceURLs -- the source URL (--source)
-> WikiURLs -- the wiki URL (--wiki)
@@ -285,7 +285,7 @@ moduleInfo iface =
let
info = ifaceInfo iface
- doOneEntry :: (String, (GHC.HaddockModInfo GHC.Name) -> Maybe String) -> Maybe HtmlTable
+ doOneEntry :: (String, (HaddockModInfo GHC.Name) -> Maybe String) -> Maybe HtmlTable
doOneEntry (fieldName,field) = case field info of
Nothing -> Nothing
Just fieldValue ->
@@ -294,9 +294,9 @@ moduleInfo iface =
entries :: [HtmlTable]
entries = mapMaybe doOneEntry [
- ("Portability",GHC.hmi_portability),
- ("Stability",GHC.hmi_stability),
- ("Maintainer",GHC.hmi_maintainer)
+ ("Portability",hmi_portability),
+ ("Stability",hmi_stability),
+ ("Maintainer",hmi_maintainer)
]
in
case entries of
@@ -314,7 +314,7 @@ ppHtmlContents
-> Maybe String
-> SourceURLs
-> WikiURLs
- -> [InstalledInterface] -> Bool -> Maybe (GHC.HsDoc GHC.RdrName)
+ -> [InstalledInterface] -> Bool -> Maybe (HsDoc GHC.RdrName)
-> IO ()
ppHtmlContents odir doctitle
maybe_package maybe_html_help_format maybe_index_url
@@ -349,7 +349,7 @@ ppHtmlContents odir doctitle
Just "devhelp" -> return ()
Just format -> fail ("The "++format++" format is not implemented")
-ppPrologue :: String -> Maybe (GHC.HsDoc GHC.RdrName) -> HtmlTable
+ppPrologue :: String -> Maybe (HsDoc GHC.RdrName) -> HtmlTable
ppPrologue _ Nothing = Html.emptyTable
ppPrologue title (Just doc) =
(tda [theclass "section1"] << toHtml title) </>
@@ -1755,15 +1755,15 @@ rdrDocToHtml doc = markup htmlRdrMarkup (unParagraph (markup htmlCleanup doc))
-- separate them. So we catch the single paragraph case and transform it
-- here.
unParagraph :: HsDoc a -> HsDoc a
-unParagraph (GHC.DocParagraph d) = d
+unParagraph (DocParagraph d) = d
--NO: This eliminates line breaks in the code block: (SDM, 6/5/2003)
--unParagraph (DocCodeBlock d) = (DocMonospaced d)
unParagraph doc = doc
-htmlCleanup :: DocMarkup a (GHC.HsDoc a)
+htmlCleanup :: DocMarkup a (HsDoc a)
htmlCleanup = idMarkup {
- markupUnorderedList = GHC.DocUnorderedList . map unParagraph,
- markupOrderedList = GHC.DocOrderedList . map unParagraph
+ markupUnorderedList = DocUnorderedList . map unParagraph,
+ markupOrderedList = DocOrderedList . map unParagraph
}
-- -----------------------------------------------------------------------------
@@ -1895,7 +1895,7 @@ ndocBox html = tda [theclass "ndoc"] << html
rdocBox :: Html -> HtmlTable
rdocBox html = tda [theclass "rdoc"] << html
-maybeRDocBox :: Maybe (GHC.LHsDoc DocName) -> HtmlTable
+maybeRDocBox :: Maybe (LHsDoc DocName) -> HtmlTable
maybeRDocBox Nothing = rdocBox (noHtml)
maybeRDocBox (Just ldoc) = rdocBox (docToHtml (unLoc ldoc))