[project @ 2001-11-01 13:20:05 by simonpj]
authorsimonpj <unknown>
Thu, 1 Nov 2001 13:20:06 +0000 (13:20 +0000)
committersimonpj <unknown>
Thu, 1 Nov 2001 13:20:06 +0000 (13:20 +0000)
commit51666a19707f4ca34eec28a14bffbbc7d642e647
tree6ed88f929e22f229fd3c75aeb1756f43dc735219
parent375b5a8a3b1a602831b2505afcd5183b568cedc1
[project @ 2001-11-01 13:20:05 by simonpj]
---------------------------------------
Fix a unboxed-binding bug in SpecConstr
---------------------------------------

[HEAD only]

This fixes a rather obscure bug in the constructor
specialiser discovered by Ralf Hinze.  It was
generating a specialised version of the function
with no arguments --- and the function returned an
unboxed type.

Solution: same as for worker-wrapper; add a dummy
argument.

Several files are affected because I added
CoreUtils.mkPiTypes, as a useful helper function.
ghc/compiler/basicTypes/MkId.lhs
ghc/compiler/coreSyn/CoreUtils.lhs
ghc/compiler/prelude/PrelNames.lhs
ghc/compiler/simplCore/SetLevels.lhs
ghc/compiler/simplCore/Simplify.lhs
ghc/compiler/specialise/SpecConstr.lhs
ghc/compiler/stranal/WwLib.lhs