Hello!

On Mon, Jul 31, 2000 at 12:27:52AM +0000, Bill Halchin wrote:
> Hello Haskell Community,


>     Is there a tutorial or simple sample Haskell scripts that
> demonstrate the use of Haskell Thread??. I know that Haskell
> threads are monad.

import Concurrent

main = forkIO a >> b
 where
  a = putStrLn "a" >> threadDelay 1000000 >> a
  b = putStrLn "b" >> threadDelay 1100000 >> b

Compile with e.g. ghc -syslib concurrent -o main Main.hs

Regards, Hannah.

Reply via email to