Haskell implementation of the Hashtag spec.