[project @ 2002-05-27 16:13:42 by simonpj]
authorsimonpj <unknown>
Mon, 27 May 2002 16:13:43 +0000 (16:13 +0000)
committersimonpj <unknown>
Mon, 27 May 2002 16:13:43 +0000 (16:13 +0000)
commitfd7d044fe32e5685b35f16833b81794a61a98bc7
treee7ac5a59a1a5131b448d3b185fb8e4e1a5c6dd76
parent9aa4ed053c3b2d04d287247995ec9292e93a0a23
[project @ 2002-05-27 16:13:42 by simonpj]
Make negative literals work in patterns

The issue here is that

f (-1) = True
f x    = False

should generate

f x = x == negate (fromInteger 1)

rather than

f x = x == fromInteger (-1)
ghc/compiler/hsSyn/HsPat.lhs
ghc/compiler/parser/ParseUtil.lhs
ghc/compiler/rename/RnExpr.lhs
ghc/compiler/typecheck/TcPat.lhs