updated haskell snippets