Skip to content
  • Simon Peyton Jones's avatar
    Add assertion for arity match (checks Trac #2844) · 60881299
    Simon Peyton Jones authored
    The exported arity of a function must match the arity for the
    STG function.  Trac #2844 was a pretty obscure manifestation of
    the failure of this invariant. This patch doesn't cure the bug;
    rather it adds an assertion to CoreToStg to check the invariant
    so we should get an earlier and less obscure warning if this
    fails in future.
    60881299