main :: IO Int does different things with runghc and when compiled
|Reported by:||nh2||Owned by:||gintas|
|Type of failure:||Incorrect result at runtime||Test Case:||ghci/scripts/T9086b, ghc-e/should_run/T9086|
|Related Tickets:||Differential Rev(s):|
main :: IO Int main = return 1
This does different things when compiled and when run with runghc/runhaskell (it prints an extra 1 with the latter).
For practical purposes, I think it is beneficial if either of the two ways to run a Haskell program have the same output.
Or did somebody intend this to happen?
Change History (11)
Changed 16 months ago by gintas
comment:3 Changed 16 months ago by gintas
- Cc nomeata added
- difficulty changed from Unknown to Easy (less than 1 hour)
- Status changed from new to patch
comment:9 Changed 15 months ago by simonpj
- Priority changed from normal to highest
- Test Case set to ghci/scripts/T9086b, ghc-e/should_run/T9086