summaryrefslogtreecommitdiff
path: root/compiler/rename
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-05-03 20:13:43 +0000
committerIan Lynagh <igloo@earth.li>2008-05-03 20:13:43 +0000
commite033e8f63278742bc02b87469544b685d0b314fa (patch)
treefe58751b205ae713278cf930942967fa416c28df /compiler/rename
parent205b076c00e997ec0bd7a906ba4ef3fa0dbd1898 (diff)
downloadhaskell-e033e8f63278742bc02b87469544b685d0b314fa.tar.gz
Make RnHsDoc warning-free
Diffstat (limited to 'compiler/rename')
-rw-r--r--compiler/rename/RnHsDoc.hs9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/rename/RnHsDoc.hs b/compiler/rename/RnHsDoc.hs
index a1e05c913b..c556d2c3da 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