Refactored Setup.hs to perform incremental builds