X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnHsDoc.hs;h=c556d2c3da4973ea5f30543b52b34e6ee7d1099c;hb=46f02d59813499ba2aa44e7831e0b69ec6d8f25d;hp=16b9bd3e6d967784ae16182ff1cace25f779e47c;hpb=ad94d40948668032189ad22a0ad741ac1f645f50;p=ghc-hetmet.git diff --git a/compiler/rename/RnHsDoc.hs b/compiler/rename/RnHsDoc.hs index 16b9bd3..c556d2c 100644 --- a/compiler/rename/RnHsDoc.hs +++ b/compiler/rename/RnHsDoc.hs @@ -1,9 +1,3 @@ -{-# OPTIONS -w #-} --- The above warning supression flag is a temporary kludge. --- While working on this module you are encouraged to remove it and fix --- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings --- for details module RnHsDoc ( rnHaddock, rnHsDoc, rnLHsDoc, rnMbLHsDoc ) where @@ -37,16 +31,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 @@ -104,4 +101,6 @@ rnHsDoc doc = case doc of DocURL str -> return (DocURL str) + DocPic str -> return (DocPic str) + DocAName str -> return (DocAName str)