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 primitive-0.6.2.0... Building primitive-0.6.2.0... Configuring random-1.1... Installed ansi-terminal-0.6.2.3 Building random-1.1... Configuring setenv-0.1.1.3... Installed random-1.1 Building setenv-0.1.1.3... Configuring HUnit-1.5.0.0... Installed setenv-0.1.1.3 Building HUnit-1.5.0.0... Configuring stm-2.4.4.1... Installed primitive-0.6.2.0 Building stm-2.4.4.1... Installed HUnit-1.5.0.0 Configuring tf-random-0.5... Building tf-random-0.5... Configuring hspec-expectations-0.5.0.1... Installed stm-2.4.4.1 Building hspec-expectations-0.5.0.1... Installed hspec-expectations-0.5.0.1 Configuring async-2.1.1... Building async-2.1.1... Installed tf-random-0.5 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Installed async-2.1.1 Installed QuickCheck-2.9.2 Configuring quickcheck-io-0.1.4... Building quickcheck-io-0.1.4... Installed quickcheck-io-0.1.4 Downloading hspec2-0.3.1... Configuring hspec2-0.3.1... Building hspec2-0.3.1... Failed to install hspec2-0.3.1 Build log ( /home/builder/.cabal/logs/hspec2-0.3.1.log ): cabal: Entering directory '/tmp/cabal-tmp-29719/hspec2-0.3.1' Configuring hspec2-0.3.1... Building hspec2-0.3.1... Preprocessing library hspec2-0.3.1... [ 1 of 18] Compiling Test.Hspec.Timer ( src/Test/Hspec/Timer.hs, dist/build/Test/Hspec/Timer.o ) [ 2 of 18] Compiling Test.Hspec.Memoize ( src/Test/Hspec/Memoize.hs, dist/build/Test/Hspec/Memoize.o ) [ 3 of 18] Compiling Test.Hspec.Compat ( src/Test/Hspec/Compat.hs, dist/build/Test/Hspec/Compat.o ) [ 4 of 18] Compiling Test.Hspec.Util ( src/Test/Hspec/Util.hs, dist/build/Test/Hspec/Util.o ) [ 5 of 18] Compiling Test.Hspec.Core.QuickCheckUtil ( src/Test/Hspec/Core/QuickCheckUtil.hs, dist/build/Test/Hspec/Core/QuickCheckUtil.o ) src/Test/Hspec/Core/QuickCheckUtil.hs:4:1: warning: [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [ 6 of 18] Compiling Test.Hspec.Core.Type ( src/Test/Hspec/Core/Type.hs, dist/build/Test/Hspec/Core/Type.o ) src/Test/Hspec/Core/Type.hs:135:20: error: • The constructor ‘HUnitFailure’ should have 2 arguments, but has been given 1 • In the pattern: HUnitFailure err In the first argument of ‘E.Handler’, namely ‘(\ (HUnitFailure err) -> return (Fail err))’ In the expression: E.Handler (\ (HUnitFailure err) -> return (Fail err)) cabal: Leaving directory '/tmp/cabal-tmp-29719/hspec2-0.3.1' cabal: Error: some packages failed to install: hspec2-0.3.1 failed during the building phase. The exception was: ExitFailure 1