projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3475fa6
)
Fixed warnings in hsSyn/HsDoc
author
Twan van Laarhoven
<twanvl@gmail.com>
Sun, 27 Jan 2008 00:43:59 +0000
(
00:43
+0000)
committer
Twan van Laarhoven
<twanvl@gmail.com>
Sun, 27 Jan 2008 00:43:59 +0000
(
00:43
+0000)
compiler/hsSyn/HsDoc.hs
patch
|
blob
|
history
diff --git
a/compiler/hsSyn/HsDoc.hs
b/compiler/hsSyn/HsDoc.hs
index
bd75408
..
dc7245d
100644
(file)
--- 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,
module HsDoc (
HsDoc(..),
LHsDoc,
@@
-13,6
+6,8
@@
module HsDoc (
ppr_mbDoc
) where
ppr_mbDoc
) where
+-- XXX This define is a bit of a hack, and should be done more nicely
+#define FAST_STRING_NOT_NEEDED 1
#include "HsVersions.h"
import Outputable
#include "HsVersions.h"
import Outputable
@@
-43,6
+38,7
@@
type LHsDoc a = Located (HsDoc a)
instance Outputable (HsDoc a) where
ppr _ = text "<document comment>"
instance Outputable (HsDoc a) where
ppr _ = text "<document comment>"
+ppr_mbDoc :: Maybe (LHsDoc a) -> SDoc
ppr_mbDoc (Just doc) = ppr doc
ppr_mbDoc Nothing = empty
ppr_mbDoc (Just doc) = ppr doc
ppr_mbDoc Nothing = empty