X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FhsSyn%2FHsDoc.hs;h=fd721c00c0d7f5fecc820b18d65322b9d6ac3442;hb=1e50fd4185479a62e02d987bdfcb1c62712859ca;hp=c71f58b3fc74000ce5afafa0343439aae4e61ce4;hpb=2b32fbd087d2439238ef225f05f50822d04a6060;p=ghc-hetmet.git diff --git a/compiler/hsSyn/HsDoc.hs b/compiler/hsSyn/HsDoc.hs index c71f58b..fd721c0 100644 --- a/compiler/hsSyn/HsDoc.hs +++ b/compiler/hsSyn/HsDoc.hs @@ -1,10 +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 HsDoc ( HsDoc(..), LHsDoc, @@ -34,6 +27,7 @@ data HsDoc id | DocDefList [(HsDoc id, HsDoc id)] | DocCodeBlock (HsDoc id) | DocURL String + | DocPic String | DocAName String deriving (Eq, Show) @@ -42,6 +36,7 @@ type LHsDoc a = Located (HsDoc a) instance Outputable (HsDoc a) where ppr _ = text "" +ppr_mbDoc :: Maybe (LHsDoc a) -> SDoc ppr_mbDoc (Just doc) = ppr doc ppr_mbDoc Nothing = empty