For anyone looking for an example, I suggest Chapter 24 of Real World Haskell [1]. The parallel stuff is about halfway down.
[1] http://book.realworldhaskell.org/read/concurrent-and-multico...
[1] http://book.realworldhaskell.org/read/concurrent-and-multico...