> Why does this code fragment print a continous stream of b's?
> I thought it should print some alternation of a's and b's.
> I am using GHC 4.08.1 on Windows 98 with Cygwin.
> ------------
> import Concurrent
> 
> main = forkIO a >> b
>  where
>   a = putStrLn "a" >> a
>   b = putStrLn "b" >> b
> -----------

This question was answered a while back on the glasgow-haskell-users list.
See the thread starting with this post:

        
http://www.mail-archive.com/glasgow-haskell-users@haskell.org/msg01595.html

Cheers,
        Simon

Reply via email to