X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnHsDoc.hs;h=c556d2c3da4973ea5f30543b52b34e6ee7d1099c;hb=685f631451c4e6d8ebb6e31decb935db675f338e;hp=a1e05c913bcb41b7e3df8a2be9401347f0c1fb92;hpb=c6b0a84d8a3aec97086e5316b321dad9594a4fac;p=ghc-hetmet.git diff --git a/compiler/rename/RnHsDoc.hs b/compiler/rename/RnHsDoc.hs index a1e05c9..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/Commentary/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