projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7d44782
)
Fix a bug in the pretty printing of class declarations
author
davve@dtek.chalmers.se
<unknown>
Sun, 25 Jun 2006 16:08:26 +0000
(16:08 +0000)
committer
davve@dtek.chalmers.se
<unknown>
Sun, 25 Jun 2006 16:08:26 +0000
(16:08 +0000)
compiler/hsSyn/HsDecls.lhs
patch
|
blob
|
history
diff --git
a/compiler/hsSyn/HsDecls.lhs
b/compiler/hsSyn/HsDecls.lhs
index
8ff3985
..
956e201
100644
(file)
--- a/
compiler/hsSyn/HsDecls.lhs
+++ b/
compiler/hsSyn/HsDecls.lhs
@@
-462,7
+462,7
@@
instance OutputableBndr name
| otherwise -- Laid out
= sep [hsep [top_matter, ptext SLIT("where {")],
- nest 4 (sep [sep (map ppr_sig sigs), ppr methods, char '}'])]
+ nest 4 (sep [sep (map ppr_sig sigs), pprLHsBinds methods, char '}'])]
where
top_matter = ptext SLIT("class") <+> pp_decl_head (unLoc context) lclas tyvars <+> pprFundeps (map unLoc fds)
ppr_sig sig = ppr sig <> semi