patch applied (ghc): Make SpecConstr work right for nullary
constructors
Simon Peyton Jones
simonpj at microsoft.com
Wed Nov 29 21:17:12 EST 2006
Wed Nov 29 11:24:21 PST 2006 simonpj at microsoft.com
* Make SpecConstr work right for nullary constructors
For totally stupid reasons, SpecConstr didn't work for the (particularly
easy) case of nullary constructors like True and False. I just had some
equations in the wrong order, so that a Var case came first, which
matches a nullary constructor, with the constructor-application case
afterwards.
The fix is easy. I did a bit of refactoring at the same time.
M ./compiler/specialise/SpecConstr.lhs -41 +40
More information about the Cvs-ghc
mailing list