Commit c2881a23 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari

StgLint: Show constructor arity in mismatch message

Reviewers: austin

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3921
parent 6458b8dc
......@@ -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
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment