X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnHsDoc.hs;h=4d10edca5e90622260cf94becbab9f63bd55f456;hb=d64022dc071b587c20a693b7f355f69dc110b707;hp=9fb9348eb0df4d4a9d950a7ceff80cab1952453c;hpb=ec0b859902e717c24addff49f9a83efb927fb669;p=ghc-hetmet.git diff --git a/compiler/rename/RnHsDoc.hs b/compiler/rename/RnHsDoc.hs index 9fb9348..4d10edc 100644 --- a/compiler/rename/RnHsDoc.hs +++ b/compiler/rename/RnHsDoc.hs @@ -1,7 +1,7 @@ + module RnHsDoc ( rnHaddock, rnHsDoc, rnLHsDoc, rnMbLHsDoc ) where import TcRnTypes -import TcRnMonad ( RnM ) import RnEnv ( dataTcOccs, lookupGreRn_maybe ) import HsSyn @@ -30,16 +30,19 @@ rnMbHsDoc mb_doc = case mb_doc of return (Just doc') Nothing -> return Nothing +rnMbLHsDoc :: Maybe (LHsDoc RdrName) -> RnM (Maybe (LHsDoc Name)) rnMbLHsDoc mb_doc = case mb_doc of Just doc -> do doc' <- rnLHsDoc doc return (Just doc') Nothing -> return Nothing +rnLHsDoc :: LHsDoc RdrName -> RnM (LHsDoc Name) rnLHsDoc (L pos doc) = do doc' <- rnHsDoc doc return (L pos doc') +ids2string :: [RdrName] -> String ids2string [] = [] ids2string (x:_) = show $ ppr x defaultUserStyle @@ -97,4 +100,6 @@ rnHsDoc doc = case doc of DocURL str -> return (DocURL str) + DocPic str -> return (DocPic str) + DocAName str -> return (DocAName str)