Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
9e390fdd
Commit
9e390fdd
authored
May 02, 2013
by
Simon Peyton Jones
Browse files
Don't suppress foralls in the RHS of a type synonym definition!
Fixes Trac #7872
parent
11a85cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/PprTyThing.hs
View file @
9e390fdd
...
...
@@ -177,8 +177,8 @@ pprTyCon pefas ss tyCon
SynFamilyTyCon
{}
->
pprTyConHdr
pefas
tyCon
<+>
dcolon
<+>
pprTypeForUser
pefas
(
GHC
.
synTyConResKind
tyCon
)
SynonymTyCon
rhs_ty
->
hang
(
pprTyConHdr
pefas
tyCon
<+>
equals
)
2
(
ppr
TypeForUser
pefas
rhs_ty
)
2
(
ppr
rhs_ty
)
-- Don't suppress foralls on RHS type!
-- e.g. type T = forall a. a->a
|
Just
cls
<-
GHC
.
tyConClass_maybe
tyCon
=
pprClass
pefas
ss
cls
|
otherwise
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment