DEV Community

Evin
Evin

Posted on

Haskell IO concurrency

I was learning a bit more about how to do concurrency today and thought you might enjoy a laugh I just had.

Prelude Control.Concurrent> forkIO (sequence_ $ take 5 $ repeat $ putStrLn "x")
Thxr
eaxd
Idx 
25x4

x
Enter fullscreen mode Exit fullscreen mode

It took me a second to understand what I was looking at. Sure enough, the result was different every time.

Discussion (0)