patch applied (ghc): Make SpecConstr work right for nullary constructors
Simon Peyton Jones <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.all |
|---|---|
| Message-ID | <20061130021712.GA2833__11402.8548625813$1164853047$gmane$org@cvs.haskell.org> |
Wed Nov 29 11:24:21 PST 2006 [email protected] * 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