RE: Having difficulty with GHC 6.2 -main-is flag on Windows
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
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