tomasz.zielonka: > On Thu, Aug 30, 2007 at 08:33:37AM +0100, Simon Marlow wrote: > > Tomasz Zielonka wrote: > >> Hello! > >> Consider: > >> $ cat R.hs main = return [()] > >> $ runghc R.hs [()] > >> This was a bit surprising for me, because I thought that runghc > >> mimics the way a compiled program behaves. > > > > This doesn't happen with 6.6.1, I believe we fixed it at some point by > > having runghc perform "main >> return ()" instead of just main. > > Great! I'm sorry for not checking with a recent version :-/
It was a cute feature though -- great for demos where you can avoid a print statement ;) -- Don _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
