28 Jul
2005
28 Jul
'05
2:35 p.m.
Ian Lynagh writes:
With the below code (compiled by ghc) I get "a.out: thread blocked indefinitely".
You need to compile with '-threaded' to avoid this problem. Unfortunately, this doesn't mean that your program will actually work. ;-) GHC 6.4 produces a binary that waits forever. When compiling with the current GHC from CVS, everything is good: $ ghc-6.5 -threaded --make test.hs && ./a.out Chasing modules from: test.hs [1 of 1] Compiling Main ( test.hs, test.o ) Linking ... ExitSuccess Peter