Hi Sven,
Thanks for the pointer! I will try to play around with MVar.
Sincerely,
DennisSven Panne <[EMAIL PROTECTED]> wrote:
Dennis Sidharta wrote:> [ problems with concurrent Haskell ]I can see two problems in your code:* forkIO creates "daemon threads", so the program terminates immediat
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 her
Hi Keith,
With this email I attached the source code. As you can see, it is very simple. And in case you would like to know, I wrote that program for a short tutorial on Haskell for a programming language course I took last semester.
Thank you very much.
Blessings,
Dennis
Keith Wansbroug
> Hi all,
>
> I have a question on compiling a concurrent haskell source code
> using GHC. Today is my first time playing around with concurrency in
> Haskell, and this afternoon, GHC seemed to be able to compile my
> code and produced an executable. However, that executable did not
> seem to run