Resolving dependencies... Configuring Win32-2.3.1.0... cabal: Missing dependencies on foreign libraries: * Missing (or bad) header file: HsWin32.h * Missing C libraries: user32, gdi32, winmm, advapi32, shell32, shfolder This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. Failed to install Win32-2.3.1.0 Configuring ansi-terminal-0.6.2.3... Building ansi-terminal-0.6.2.3... Preprocessing library ansi-terminal-0.6.2.3... [1 of 3] Compiling System.Console.ANSI.Common ( System/Console/ANSI/Common.hs, dist/build/System/Console/ANSI/Common.o ) [2 of 3] Compiling System.Console.ANSI.Unix ( System/Console/ANSI/Unix.hs, dist/build/System/Console/ANSI/Unix.o ) [3 of 3] Compiling System.Console.ANSI ( System/Console/ANSI.hs, dist/build/System/Console/ANSI.o ) [13 of 21] Compiling Data.Vector.Primitive.Mutable ( Data/Vector/Primitive/Mutable.hs, dist/build/Data/Vector/Primitive/Mutable.o ) Data/Vector/Primitive/Mutable.hs:53:1: Bad interface file: /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/primitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb/Data/Primitive/ByteArray.hi /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/primitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb/Data/Primitive/ByteArray.hi: openBinaryFile: does not exist (No such file or directory) Data/Vector/Primitive/Mutable.hs:54:1: Bad interface file: /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/primitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb/Data/Primitive.hi /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/primitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb/Data/Primitive.hi: openBinaryFile: does not exist (No such file or directory) Failed to install vector-0.11.0.0 Configuring tf-random-0.5... cabal: The following package dependencies were requested --dependency='random=random-1.1-b321acff6e39d1736faf38033c371054' --dependency='primitive=primitive-0.6.1.0-f4f138cbd19dac63b233331b4afef43e' however the given installed package instance does not exist. Failed to install tf-random-0.5 Configuring hashable-1.2.3.3... cabal: The following package dependencies were requested --dependency='text=text-1.2.1.3-4d5a85ef41c32933350e76063fc69929' however the given installed package instance does not exist. Failed to install hashable-1.2.3.3 Configuring parsec-3.1.9... cabal: The following package dependencies were requested --dependency='text=text-1.2.1.3-4d5a85ef41c32933350e76063fc69929' --dependency='mtl=mtl-2.2.1-bfb998dc8c11466235d862ade6fe90ac' however the given installed package instance does not exist. Failed to install parsec-3.1.9 cabal: Error: some packages failed to install: QuickCheck-2.8.1 depends on tf-random-0.5 which failed to install. Win32-2.3.1.0 failed during the configure step. The exception was: ExitFailure 1 ansi-wl-pprint-0.6.7.3 failed during the configure step. The exception was: ExitFailure 1 attoparsec-0.13.0.1 depends on hashable-1.2.3.3 which failed to install. charset-0.3.7.1 depends on hashable-1.2.3.3 which failed to install. cryptohash-0.11.6 failed during the configure step. The exception was: ExitFailure 1 hashable-1.2.3.3 failed during the configure step. The exception was: ExitFailure 1 inline-c-0.5.5.1 depends on parsec-3.1.9 which failed to install. inline-c-win32-0.1 depends on parsec-3.1.9 which failed to install. parsec-3.1.9 failed during the configure step. The exception was: ExitFailure 1 parsers-0.12.3 depends on parsec-3.1.9 which failed to install. scientific-0.3.4.2 depends on hashable-1.2.3.3 which failed to install. semigroups-0.18.0.1 depends on hashable-1.2.3.3 which failed to install. tf-random-0.5 failed during the configure step. The exception was: ExitFailure 1 unordered-containers-0.2.5.1 depends on hashable-1.2.3.3 which failed to install. vector-0.11.0.0 failed during the building phase. The exception was: ExitFailure 1