Resolving dependencies... Configuring ansi-terminal-0.6.2.3... Configuring call-stack-0.1.0... Building ansi-terminal-0.6.2.3... Building call-stack-0.1.0... Installed call-stack-0.1.0 Configuring hspec-discover-2.3.2... Building hspec-discover-2.3.2... Installed ansi-terminal-0.6.2.3 Configuring random-1.1... Building random-1.1... Configuring safe-0.3.10... Installed hspec-discover-2.3.2 Building safe-0.3.10... Configuring primitive-0.6.2.0... Installed random-1.1 Configuring setenv-0.1.1.3... Installed safe-0.3.10 Building primitive-0.6.2.0... Building setenv-0.1.1.3... Configuring strict-0.3.2... Installed setenv-0.1.1.3 Building strict-0.3.2... Configuring stm-2.4.4.1... Installed strict-0.3.2 Building stm-2.4.4.1... Configuring HUnit-1.5.0.0... Installed stm-2.4.4.1 Configuring async-2.1.1... Installed primitive-0.6.2.0 Building HUnit-1.5.0.0... Building async-2.1.1... Installed async-2.1.1 Configuring tf-random-0.5... Installed HUnit-1.5.0.0 Configuring hspec-expectations-0.8.2... Building tf-random-0.5... Building hspec-expectations-0.8.2... Installed hspec-expectations-0.8.2 Installed tf-random-0.5 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Installed QuickCheck-2.9.2 Configuring quickcheck-io-0.1.4... Building quickcheck-io-0.1.4... Installed quickcheck-io-0.1.4 Configuring hspec-core-2.3.2... Building hspec-core-2.3.2... Installed hspec-core-2.3.2 Configuring hspec-2.3.2... Building hspec-2.3.2... Installed hspec-2.3.2 Downloading hspec-stack-rerun-0.1.0.2... Configuring hspec-stack-rerun-0.1.0.2... Building hspec-stack-rerun-0.1.0.2... Failed to install hspec-stack-rerun-0.1.0.2 Build log ( /home/builder/.cabal/logs/hspec-stack-rerun-0.1.0.2.log ): cabal: Entering directory '/tmp/cabal-tmp-10847/hspec-stack-rerun-0.1.0.2' Configuring hspec-stack-rerun-0.1.0.2... Building hspec-stack-rerun-0.1.0.2... Preprocessing library hspec-stack-rerun-0.1.0.2... [1 of 1] Compiling Rerun ( src/Rerun.hs, dist/build/Rerun.o ) src/Rerun.hs:34:67: error: • Couldn't match type ‘[Char]’ with ‘IOException’ Expected type: ([Char], String) Actual type: ([Char], IOException) • In the first argument of ‘logPrint’, namely ‘("saferead failed", e)’ In the first argument of ‘(>>)’, namely ‘logPrint ("saferead failed", e)’ In the expression: logPrint ("saferead failed", e) >> return def src/Rerun.hs:38:12: error: • Couldn't match expected type ‘([Char], String)’ with actual type ‘([Char], Maybe String, Maybe String)’ • In the first argument of ‘logPrint’, namely ‘("startup", stashFile, alreadySet)’ In a stmt of a 'do' block: logPrint ("startup", stashFile, alreadySet) In the expression: do { logPrint <- do { debug <- lookupEnv "HSPEC_STACK_RERUN_DEBUG"; return $ case debug of { Nothing -> ... Just _ -> ... } }; let safeReadFile :: FilePath -> IO (Maybe String) safeReadFile fs = logAndIgnore Nothing $ ... ....; stashFile <- lookupEnv "HSPEC_FAILURES_FILE"; alreadySet <- lookupEnv "HSPEC_FAILURES"; .... } src/Rerun.hs:60:14: error: • Couldn't match expected type ‘([Char], String)’ with actual type ‘[Char]’ • In the first argument of ‘logPrint’, namely ‘"done with tests!"’ In a stmt of a 'do' block: logPrint "done with tests!" In the second argument of ‘finally’, namely ‘do { logPrint "done with tests!"; case stashFile of { Just stash -> logAndIgnore () $ removeFile stash Nothing -> return () }; newSet <- lookupEnv "HSPEC_FAILURES"; logPrint ("spec failures", newSet, stashFile, alreadySet); .... }’ src/Rerun.hs:70:14: error: • Couldn't match expected type ‘([Char], String)’ with actual type ‘([Char], Maybe String, Maybe String, Maybe String)’ • In the first argument of ‘logPrint’, namely ‘("spec failures", newSet, stashFile, alreadySet)’ In a stmt of a 'do' block: logPrint ("spec failures", newSet, stashFile, alreadySet) In the second argument of ‘finally’, namely ‘do { logPrint "done with tests!"; case stashFile of { Just stash -> logAndIgnore () $ removeFile stash Nothing -> return () }; newSet <- lookupEnv "HSPEC_FAILURES"; logPrint ("spec failures", newSet, stashFile, alreadySet); .... }’ cabal: Leaving directory '/tmp/cabal-tmp-10847/hspec-stack-rerun-0.1.0.2' cabal: Error: some packages failed to install: hspec-stack-rerun-0.1.0.2 failed during the building phase. The exception was: ExitFailure 1