[project @ 2001-06-04 16:49:15 by simonpj]
authorsimonpj <unknown>
Mon, 4 Jun 2001 16:49:15 +0000 (16:49 +0000)
committersimonpj <unknown>
Mon, 4 Jun 2001 16:49:15 +0000 (16:49 +0000)
commitf08a180a2923d58a6123deeafc0b319a26687c5b
tree680347224f6d0bb3355418773904de4355029287
parent59aaef6b00115e7a30e017362bdbc4475d8637d9
[project @ 2001-06-04 16:49:15 by simonpj]
----------------------------------
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.
ghc/compiler/coreSyn/CoreUtils.lhs