Difference between optimized and non-optimized version

Hi! I am attaching a program which locks (throws an exception <<loop>>) when compiled like: ghc --make -threaded -main-is Test.main Test.hs -o test and doesn't lock when compiled with ghc --make -threaded -main-is -O2 Test.main Test.hs -o test This should probably not happen. I am using 6.12.3 on Linux x86_64. Best regards Mitar

Doesn't look right. I've made a ticket http://hackage.haskell.org/trac/ghc/ticket/4283 Simon | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell- | users-bounces@haskell.org] On Behalf Of Mitar | Sent: 02 September 2010 01:27 | To: glasgow-haskell-users | Subject: Difference between optimized and non-optimized version | | Hi! | | I am attaching a program which locks (throws an exception <<loop>>) when | compiled like: | | ghc --make -threaded -main-is Test.main Test.hs -o test | | and doesn't lock when compiled with | | ghc --make -threaded -main-is -O2 Test.main Test.hs -o test | | This should probably not happen. | | I am using 6.12.3 on Linux x86_64. | | Best regards | | | Mitar
participants (2)
-
Mitar
-
Simon Peyton-Jones