Make command implementation in haskell