Skip to content

Commit

Permalink
Don't suppress foralls in the RHS of a type synonym definition!
Browse files Browse the repository at this point in the history
Fixes Trac #7872
  • Loading branch information
Simon Peyton Jones committed May 3, 2013
1 parent 11a85cc commit 9e390fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/main/PprTyThing.hs
Expand Up @@ -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 (pprTypeForUser 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
Expand Down

0 comments on commit 9e390fd

Please sign in to comment.