[Haskell] Re: runProcess with out=err

Peter Simons simons at cryp.to
Thu Jul 28 10:35:10 EDT 2005

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 ...


More information about the Haskell mailing list