Commit 18603f72 authored by simonpj@microsoft.com's avatar simonpj@microsoft.com

Print out a bit more info with the "arity decrease" waring

parent af7c22d9
......@@ -651,8 +651,8 @@ addNonRecWithUnf env new_bndr new_rhs new_unfolding
in
ASSERT( isId new_bndr )
WARN( new_arity < old_arity || new_arity < dmd_arity,
(ptext (sLit "Arity decrease:") <+> ppr final_id <+> ppr old_arity
<+> ppr new_arity <+> ppr dmd_arity) )
(ptext (sLit "Arity decrease:") <+> (ppr final_id <+> ppr old_arity
<+> ppr new_arity <+> ppr dmd_arity) $$ ppr new_rhs) )
-- Note [Arity decrease]
final_id `seq` -- This seq forces the Id, and hence its IdInfo,
......
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