compiling concurrent haskell with ghc

Sven Panne
Mon, 28 Jul 2003 15:42:42 +0200

Dennis Sidharta wrote:
> [ problems with concurrent Haskell ]

I can see two problems in your code:

* forkIO creates "daemon threads", so the program terminates immediately.

* Chan is an unbounded channel, so you won't get a "ping pong", which
   is probably what you expected. MVar is your friend here.