summaryrefslogtreecommitdiff
path: root/compiler/hsSyn/HsDecls.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/hsSyn/HsDecls.hs')
-rw-r--r--compiler/hsSyn/HsDecls.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/hsSyn/HsDecls.hs b/compiler/hsSyn/HsDecls.hs
index 35fccd3396..55d43fd058 100644
--- a/compiler/hsSyn/HsDecls.hs
+++ b/compiler/hsSyn/HsDecls.hs
@@ -1106,8 +1106,9 @@ instance (SourceTextX pass, OutputableBndrId pass)
-- This complexity is to distinguish between
-- deriving Show
-- deriving (Show)
- pp_dct [a@(HsIB { hsib_body = L _ HsAppsTy{} })] = parens (ppr a)
- pp_dct [a] = ppr a
+ pp_dct [a@(HsIB { hsib_body = ty })]
+ | isCompoundHsType ty = parens (ppr a)
+ | otherwise = ppr a
pp_dct _ = parens (interpp'SP dct)
data NewOrData