Refactor - haskell setup