[Haskell] snippets