Tidy up treatment of big lambda (fixes Trac #2898)
authorsimonpj@microsoft.com <unknown>
Tue, 30 Dec 2008 14:59:48 +0000 (14:59 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 30 Dec 2008 14:59:48 +0000 (14:59 +0000)
commit85f8276b368d39c93e137fa7b0a8a96ab3c6b389
treefbb4d1791f7c2945d04a1e384d03be0f4737157c
parent21692096cce60108185c777c0ecc8d113fd61bf7
Tidy up treatment of big lambda (fixes Trac #2898)

There was a leftover big lambda in the CorePrep'd code, which confused
the bytecode generator.  Actually big lambdas are harmless.  This patch
refactors ByteCodeGen so that it systemantically used 'bcView' to eliminate
junk.  I did a little clean up in CorePrep too.

See comments in Trac #2898.
compiler/coreSyn/CorePrep.lhs
compiler/ghci/ByteCodeGen.lhs