Use haskell instead of makefile