cvs commit: fptools/ghc/compiler/coreSyn CoreUtils.lhs
Simon Peyton Jones
simonpj@glass.cse.ogi.edu
Mon, 4 Jun 2001 09:49:15 -0700
simonpj 2001/06/04 09:49:15 PDT
Modified files:
ghc/compiler/coreSyn CoreUtils.lhs
Log:
----------------------------------
Make exprArity give the right answer
----------------------------------
MERGE INTO 5.00.2
This fixes a fairly long-standing bug in exprArity, dating from
the time we allowed arguments to be non-atoms. If f had arity
2, it was saying that
f (factorial x)
had arity 2, as well, which is plain wrong.
Revision Changes Path
1.81 +9 -7 fptools/ghc/compiler/coreSyn/CoreUtils.lhs