RE: Having difficulty with GHC 6.2 -main-is flag on Windows

2004-01-08 Thread Simon Marlow
Hi, I'm trying to use the new GHC -main-is flag to compile programs from files with module names other than Main, but it doesn't seem to be working. I've tried this under Windows 2000 and Windows XP. Here's my test program: [[ -- HelloWorld.hs -- module HelloWorld where module

RE: impossible in ghc 6.2

2004-01-08 Thread Simon Peyton-Jones
Aha. Got it. Consider case f x of (# a,b #) - if a0 then f x -- CSE opportunity else (# b,a #) GHC 6.2's CSE pass wrongly optimised this to: case f x of t (# a,b #) - if a0 then t