A simple word parser for Haskell