Resolving dependencies... Downloading Win32-2.2.2.0... Configuring Win32-2.2.2.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.2.2.0 Downloading regex-base-0.93.2... Configuring regex-base-0.93.2... Building regex-base-0.93.2... Preprocessing library regex-base-0.93.2... [1 of 4] Compiling Text.Regex.Base.RegexLike ( Text/Regex/Base/RegexLike.hs, dist/build/Text/Regex/Base/RegexLike.o ) [2 of 4] Compiling Text.Regex.Base.Context ( Text/Regex/Base/Context.hs, dist/build/Text/Regex/Base/Context.o ) [3 of 4] Compiling Text.Regex.Base ( Text/Regex/Base.hs, dist/build/Text/Regex/Base.o ) [4 of 4] Compiling Text.Regex.Base.Impl ( Text/Regex/Base/Impl.hs, dist/build/Text/Regex/Base/Impl.o ) In-place registering regex-base-0.93.2... Running Haddock for regex-base-0.93.2... Running hscolour for regex-base-0.93.2... Preprocessing library regex-base-0.93.2... Preprocessing library regex-base-0.93.2... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0, mtl-2.1.2, transformers-0.3.0.0 Haddock coverage: 94% ( 17 / 18) in 'Text.Regex.Base.RegexLike' 100% ( 1 / 1) in 'Text.Regex.Base.Context' 75% ( 3 / 4) in 'Text.Regex.Base' 33% ( 1 / 3) in 'Text.Regex.Base.Impl' Documentation created: dist/doc/html/regex-base/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/regex-base-0.93.2/ghc-7.6.3 Registering regex-base-0.93.2... Installed regex-base-0.93.2 Downloading regex-posix-0.95.2... Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Preprocessing library regex-posix-0.95.2... [1 of 6] Compiling Text.Regex.Posix.Wrap ( dist/build/Text/Regex/Posix/Wrap.hs, dist/build/Text/Regex/Posix/Wrap.o ) [2 of 6] Compiling Text.Regex.Posix.String ( Text/Regex/Posix/String.hs, dist/build/Text/Regex/Posix/String.o ) [3 of 6] Compiling Text.Regex.Posix.Sequence ( Text/Regex/Posix/Sequence.hs, dist/build/Text/Regex/Posix/Sequence.o ) [4 of 6] Compiling Text.Regex.Posix.ByteString ( Text/Regex/Posix/ByteString.hs, dist/build/Text/Regex/Posix/ByteString.o ) [5 of 6] Compiling Text.Regex.Posix.ByteString.Lazy ( Text/Regex/Posix/ByteString/Lazy.hs, dist/build/Text/Regex/Posix/ByteString/Lazy.o ) [6 of 6] Compiling Text.Regex.Posix ( Text/Regex/Posix.hs, dist/build/Text/Regex/Posix.o ) In-place registering regex-posix-0.95.2... Running Haddock for regex-posix-0.95.2... Running hscolour for regex-posix-0.95.2... Preprocessing library regex-posix-0.95.2... Preprocessing library regex-posix-0.95.2... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0, mtl-2.1.2, transformers-0.3.0.0 Haddock coverage: 40% ( 17 / 42) in 'Text.Regex.Posix.Wrap' 68% ( 17 / 25) in 'Text.Regex.Posix.String' 67% ( 16 / 24) in 'Text.Regex.Posix.Sequence' 68% ( 17 / 25) in 'Text.Regex.Posix.ByteString' 68% ( 17 / 25) in 'Text.Regex.Posix.ByteString.Lazy' 80% ( 4 / 5) in 'Text.Regex.Posix' Warning: Text.Regex.Posix.Wrap: could not find link destinations for: Text.Regex.Posix.Wrap.retNoMatch Warning: Text.Regex.Posix.String: could not find link destinations for: Text.Regex.Posix.Wrap.retNoMatch Warning: Text.Regex.Posix.Sequence: could not find link destinations for: Text.Regex.Posix.Wrap.retNoMatch Warning: Text.Regex.Posix.ByteString: could not find link destinations for: Text.Regex.Posix.Wrap.retNoMatch Warning: Text.Regex.Posix.ByteString.Lazy: could not find link destinations for: Text.Regex.Posix.Wrap.retNoMatch Documentation created: dist/doc/html/regex-posix/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/regex-posix-0.95.2/ghc-7.6.3 Registering regex-posix-0.95.2... Installed regex-posix-0.95.2 Downloading regex-compat-0.95.1... Configuring regex-compat-0.95.1... Building regex-compat-0.95.1... Preprocessing library regex-compat-0.95.1... [1 of 1] Compiling Text.Regex ( Text/Regex.hs, dist/build/Text/Regex.o ) In-place registering regex-compat-0.95.1... Running Haddock for regex-compat-0.95.1... Running hscolour for regex-compat-0.95.1... Preprocessing library regex-compat-0.95.1... Preprocessing library regex-compat-0.95.1... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0, mtl-2.1.2, transformers-0.3.0.0 Haddock coverage: 100% ( 9 / 9) in 'Text.Regex' Documentation created: dist/doc/html/regex-compat/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/regex-compat-0.95.1/ghc-7.6.3 Registering regex-compat-0.95.1... Installed regex-compat-0.95.1 cabal: Error: some packages failed to install: AWin32Console-1.1 depends on Win32-2.2.2.0 which failed to install. Win32-2.2.2.0 failed during the configure step. The exception was: ExitFailure 1