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:
1c83695
)
pprExpr: don't add extra parens around [a..b] in an argument position
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 8 Jun 2009 08:27:05 +0000
(08:27 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Mon, 8 Jun 2009 08:27:05 +0000
(08:27 +0000)
test is tcfail205
compiler/hsSyn/HsExpr.lhs
patch
|
blob
|
history
diff --git
a/compiler/hsSyn/HsExpr.lhs
b/compiler/hsSyn/HsExpr.lhs
index
2ddb7c8
..
db54ab8
100644
(file)
--- a/
compiler/hsSyn/HsExpr.lhs
+++ b/
compiler/hsSyn/HsExpr.lhs
@@
-529,6
+529,8
@@
pprParendExpr expr
-- I think that is usually (always?) right
in
case unLoc expr of
-- I think that is usually (always?) right
in
case unLoc expr of
+ ArithSeq{} -> pp_as_was
+ PArrSeq{} -> pp_as_was
HsLit _ -> pp_as_was
HsOverLit _ -> pp_as_was
HsVar _ -> pp_as_was
HsLit _ -> pp_as_was
HsOverLit _ -> pp_as_was
HsVar _ -> pp_as_was