[project @ 1999-07-14 22:10:40 by simonpj]
authorsimonpj <unknown>
Wed, 14 Jul 1999 22:10:42 +0000 (22:10 +0000)
committersimonpj <unknown>
Wed, 14 Jul 1999 22:10:42 +0000 (22:10 +0000)
commit72af48cb2073cd6015942bb6cb713039b58b1b4a
treeda3c17049a8012206b9dd8be929692cc9ec9563d
parentc458067f883d9270360c37d76139fc1f62e19a0f
[project @ 1999-07-14 22:10:40 by simonpj]
[Simon: this should fix that -funfolding-use-threshold0 lint bug]

[Kevin: have a look at WwLib.mkWwBodies.  Isn't it a thing of beauty?
Could you think about whether the CPR stuff could be cleaned
up a bit?  The strictness stuff is much shorter.]

This commit tidies up WwLib.mkWwBodies, fixing a couple of bugs.

* One bug showed up when CPR made a worker return an unboxed tuple,
  but the worker didn't have any other arguments.  The "add a void arg"
  hack needed to be generalised a bit.

* The other bug showed up when booting the compiler.  There's a long
  comment near splitProductType in WwLib.lhs that explains the problem.
ghc/compiler/cprAnalysis/CprAnalyse.lhs
ghc/compiler/stranal/WwLib.lhs
ghc/compiler/types/Type.lhs