Migrated cabal test runner to Haskell code