diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-09-04 08:14:11 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-09-05 07:20:01 -0400 |
commit | c2881a23319d91c6e1301a6fd149ca37a3bcfc1e (patch) | |
tree | df0ed055c8799c908ecf846f710b53c923e1e6fe /compiler/stgSyn | |
parent | 6458b8dcbd33b3c32f3c23f7e5b08fdc6e73ed46 (diff) | |
download | haskell-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.hs | 2 |
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 ] |