summaryrefslogtreecommitdiff
path: root/compiler/stgSyn
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-09-04 08:14:11 -0400
committerBen Gamari <ben@smart-cactus.org>2017-09-05 07:20:01 -0400
commitc2881a23319d91c6e1301a6fd149ca37a3bcfc1e (patch)
treedf0ed055c8799c908ecf846f710b53c923e1e6fe /compiler/stgSyn
parent6458b8dcbd33b3c32f3c23f7e5b08fdc6e73ed46 (diff)
downloadhaskell-c2881a23319d91c6e1301a6fd149ca37a3bcfc1e.tar.gz
StgLint: Show constructor arity in mismatch message
Reviewers: austin Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3921
Diffstat (limited to 'compiler/stgSyn')
-rw-r--r--compiler/stgSyn/StgLint.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/stgSyn/StgLint.hs b/compiler/stgSyn/StgLint.hs
index 5140a47233..90628f050d 100644
--- a/compiler/stgSyn/StgLint.hs
+++ b/compiler/stgSyn/StgLint.hs
@@ -490,7 +490,7 @@ mkAlgAltMsg3 :: DataCon -> [Id] -> MsgDoc
mkAlgAltMsg3 con alts
= vcat [
text "In some algebraic case alternative, number of arguments doesn't match constructor:",
- ppr con,
+ ppr con <+> parens (text "arity" <+> ppr (dataConRepArity con)),
ppr alts
]