update haskell snippet