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:
a4559bd
)
Improve pretty-printing of splices in HsSyn
author
simonpj@microsoft.com
<unknown>
Wed, 10 Oct 2007 12:37:26 +0000
(12:37 +0000)
committer
simonpj@microsoft.com
<unknown>
Wed, 10 Oct 2007 12:37:26 +0000
(12:37 +0000)
compiler/hsSyn/HsExpr.lhs
patch
|
blob
|
history
diff --git
a/compiler/hsSyn/HsExpr.lhs
b/compiler/hsSyn/HsExpr.lhs
index
4995d52
..
5b552c6
100644
(file)
--- a/
compiler/hsSyn/HsExpr.lhs
+++ b/
compiler/hsSyn/HsExpr.lhs
@@
-875,7
+875,7
@@
instance OutputableBndr id => Outputable (HsSplice id) where
ppr = pprSplice
pprSplice :: OutputableBndr id => HsSplice id -> SDoc
-pprSplice (HsSplice n e) = char '$' <> brackets (ppr n) <> pprParendExpr e
+pprSplice (HsSplice n e) = char '$' <> ifPprDebug (brackets (ppr n)) <> pprParendExpr e
data HsBracket id = ExpBr (LHsExpr id) -- [| expr |]