Started reimplementing build scripts in haskell