patch applied (ghc): Warn a bit less often about unlifted bindings.
Simon Peyton Jones
simonpj at microsoft.com
Tue Nov 16 12:23:58 EST 2010
Tue Nov 16 09:18:43 PST 2010 simonpj at microsoft.com
* Warn a bit less often about unlifted bindings.
Warn when
(a) a pattern bindings binds unlifted values
(b) it has no top-level bang
(c) the RHS has a *lifted* type
Clause (c) is new, argued for by Simon M
Eg x# = 4# + 4# -- No warning
(# a,b #) = blah -- No warning
I# x = blah -- Warning
M ./compiler/hsSyn/HsPat.lhs -2 +22
M ./compiler/typecheck/TcBinds.lhs -4 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20101116171843-1287e-a6e70fa980a8c66bf4bc2b8abc5e8a3c71d4b33b.gz
More information about the Cvs-ghc
mailing list