patch applied (ghc): Add assertion for arity match (checks Trac
#2844)
Simon Peyton Jones
simonpj at microsoft.com
Mon Dec 8 12:45:25 EST 2008
Mon Dec 8 09:32:41 PST 2008 simonpj at microsoft.com
* Add assertion for arity match (checks Trac #2844)
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.
M ./compiler/stgSyn/CoreToStg.lhs -15 +39
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20081208173241-1287e-7c1cd09e73339d029e153f8c67a1e6c1ef53ab6d.gz
More information about the Cvs-ghc
mailing list