diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2019-10-21 14:57:01 -0400 |
---|---|---|
committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2019-10-23 17:52:59 -0400 |
commit | 67cf29f825361f844d311986e88c1d4b51a75531 (patch) | |
tree | 3deb8f7ac3ae8c4f0b1862cf9584be63b5f098e1 /compiler | |
parent | 7f72b540288bbdb32a6750dd64b9d366501ed10c (diff) | |
download | haskell-wip/T17384.tar.gz |
Parenthesize GADT return types in pprIfaceConDecl (#17384)wip/T17384
We were using `pprIfaceAppArgs` instead of `pprParendIfaceAppArgs`
in `pprIfaceConDecl`. Oops.
Fixes #17384.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/iface/IfaceSyn.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/iface/IfaceSyn.hs b/compiler/iface/IfaceSyn.hs index ce4332c27b..f691300157 100644 --- a/compiler/iface/IfaceSyn.hs +++ b/compiler/iface/IfaceSyn.hs @@ -1203,7 +1203,7 @@ pprIfaceConDecl ss gadt_style tycon tc_binders parent -- [VarBndrs, TyCoVarBinders, TyConBinders, and visibility] in TyCoRep.) ppr_tc_app gadt_subst = pprPrefixIfDeclBndr how_much (occName tycon) - <+> pprIfaceAppArgs + <+> pprParendIfaceAppArgs (substIfaceAppArgs gadt_subst (mk_tc_app_args tc_binders)) mk_tc_app_args :: [IfaceTyConBinder] -> IfaceAppArgs |