Implementation of `wc` in Haskell using CHP