patch applied (ghc): Tuples cannot contain unboxed types
Simon Peyton Jones
simonpj at microsoft.com
Wed May 21 05:06:34 EDT 2008
Thu May 15 04:53:32 PDT 2008 simonpj at microsoft.com
* Tuples cannot contain unboxed types
This bug allowed, for example
f = let x = ( 1#, 'x' ) in x
which is ill-typed because you can't put an unboxed value in a tuple.
Core Lint fails on this program.
The patch makes the program be rejcted up-front.
M ./compiler/typecheck/TcExpr.lhs -1 +3
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080515115332-1287e-9168c0a870f94aa5d3e5f613e9fe18ac849978e3.gz
More information about the Cvs-ghc
mailing list