Parallel-Concurrent-Programming Code from the book Parallel and Concurent Programming in Haskell by Simon Marlow