Resolving dependencies... cabal: Entering directory '/tmp/cabal-tmp-21590/Win32-2.3.1.1' Configuring Win32-2.3.1.1... 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. cabal: Leaving directory '/tmp/cabal-tmp-21590/Win32-2.3.1.1' Failed to install Win32-2.3.1.1 cabal: Entering directory '/tmp/cabal-tmp-21590/mtl-2.2.1' Configuring mtl-2.2.1... Building mtl-2.2.1... Preprocessing library mtl-2.2.1... [ 1 of 22] Compiling Control.Monad.Writer.Class ( Control/Monad/Writer/Class.hs, dist/build/Control/Monad/Writer/Class.o ) [ 2 of 22] Compiling Control.Monad.State.Class ( Control/Monad/State/Class.hs, dist/build/Control/Monad/State/Class.o ) [ 3 of 22] Compiling Control.Monad.Reader.Class ( Control/Monad/Reader/Class.hs, dist/build/Control/Monad/Reader/Class.o ) [ 4 of 22] Compiling Control.Monad.RWS.Class ( Control/Monad/RWS/Class.hs, dist/build/Control/Monad/RWS/Class.o ) [ 5 of 22] Compiling Control.Monad.Identity ( Control/Monad/Identity.hs, dist/build/Control/Monad/Identity.o ) [ 6 of 22] Compiling Control.Monad.Error.Class ( Control/Monad/Error/Class.hs, dist/build/Control/Monad/Error/Class.o ) [ 7 of 22] Compiling Control.Monad.Cont.Class ( Control/Monad/Cont/Class.hs, dist/build/Control/Monad/Cont/Class.o ) [ 8 of 22] Compiling Control.Monad.Trans ( Control/Monad/Trans.hs, dist/build/Control/Monad/Trans.o ) [ 9 of 22] Compiling Control.Monad.Error ( Control/Monad/Error.hs, dist/build/Control/Monad/Error.o ) [10 of 22] Compiling Control.Monad.Except ( Control/Monad/Except.hs, dist/build/Control/Monad/Except.o ) [11 of 22] Compiling Control.Monad.List ( Control/Monad/List.hs, dist/build/Control/Monad/List.o ) [12 of 22] Compiling Control.Monad.RWS.Lazy ( Control/Monad/RWS/Lazy.hs, dist/build/Control/Monad/RWS/Lazy.o ) [13 of 22] Compiling Control.Monad.RWS ( Control/Monad/RWS.hs, dist/build/Control/Monad/RWS.o ) [14 of 22] Compiling Control.Monad.Reader ( Control/Monad/Reader.hs, dist/build/Control/Monad/Reader.o ) [15 of 22] Compiling Control.Monad.RWS.Strict ( Control/Monad/RWS/Strict.hs, dist/build/Control/Monad/RWS/Strict.o ) [16 of 22] Compiling Control.Monad.State.Lazy ( Control/Monad/State/Lazy.hs, dist/build/Control/Monad/State/Lazy.o ) [17 of 22] Compiling Control.Monad.State ( Control/Monad/State.hs, dist/build/Control/Monad/State.o ) [18 of 22] Compiling Control.Monad.State.Strict ( Control/Monad/State/Strict.hs, dist/build/Control/Monad/State/Strict.o ) [19 of 22] Compiling Control.Monad.Writer.Lazy ( Control/Monad/Writer/Lazy.hs, dist/build/Control/Monad/Writer/Lazy.o ) [20 of 22] Compiling Control.Monad.Writer ( Control/Monad/Writer.hs, dist/build/Control/Monad/Writer.o ) [21 of 22] Compiling Control.Monad.Writer.Strict ( Control/Monad/Writer/Strict.hs, dist/build/Control/Monad/Writer/Strict.o ) [22 of 22] Compiling Control.Monad.Cont ( Control/Monad/Cont.hs, dist/build/Control/Monad/Cont.o ) Running Haddock for mtl-2.2.1... Running hscolour for mtl-2.2.1... Preprocessing library mtl-2.2.1... Preprocessing library mtl-2.2.1... Haddock coverage: 75% ( 3 / 4) in 'Control.Monad.Writer.Class' Missing documentation for: MonadWriter (Control/Monad/Writer/Class.hs:62) 100% ( 5 / 5) in 'Control.Monad.State.Class' 100% ( 3 / 3) in 'Control.Monad.Reader.Class' 80% ( 4 / 5) in 'Control.Monad.RWS.Class' Missing documentation for: MonadRWS (Control/Monad/RWS/Class.hs:44) 100% ( 4 / 4) in 'Control.Monad.Identity' 100% ( 3 / 3) in 'Control.Monad.Error.Class' 50% ( 1 / 2) in 'Control.Monad.Cont.Class' Missing documentation for: MonadCont (Control/Monad/Cont/Class.hs:73) 100% ( 3 / 3) in 'Control.Monad.Trans' 93% ( 14 / 15) in 'Control.Monad.Error' Missing documentation for: runErrorT 100% ( 19 / 19) in 'Control.Monad.Except' 100% ( 5 / 5) in 'Control.Monad.List' 95% ( 21 / 22) in 'Control.Monad.RWS.Lazy' Missing documentation for: runRWST 100% ( 2 / 2) in 'Control.Monad.RWS' 96% ( 22 / 23) in 'Control.Monad.Reader' Missing documentation for: runReaderT 95% ( 21 / 22) in 'Control.Monad.RWS.Strict' Missing documentation for: runRWST 96% ( 24 / 25) in 'Control.Monad.State.Lazy' Missing documentation for: runStateT 100% ( 2 / 2) in 'Control.Monad.State' 96% ( 24 / 25) in 'Control.Monad.State.Strict' Missing documentation for: runStateT 89% ( 17 / 19) in 'Control.Monad.Writer.Lazy' Missing documentation for: MonadWriter (Control/Monad/Writer/Class.hs:62) runWriterT 100% ( 2 / 2) in 'Control.Monad.Writer' 94% ( 17 / 18) in 'Control.Monad.Writer.Strict' Missing documentation for: MonadWriter (Control/Monad/Writer/Class.hs:62) 91% ( 20 / 22) in 'Control.Monad.Cont' Missing documentation for: MonadCont (Control/Monad/Cont/Class.hs:73) runContT Documentation created: dist/doc/html/mtl/index.html, dist/doc/html/mtl/mtl.txt Creating package registration file: /tmp/pkgConf-mtl-2.21374344043760313750.1 Installing library in /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20160701/mtl-2.2.1-6qsR1PHUy5lL47Hpoa4jCM Registering mtl-2.2.1... cabal: Leaving directory '/tmp/cabal-tmp-21590/mtl-2.2.1' Installed mtl-2.2.1 cabal: Entering directory '/tmp/cabal-tmp-21590/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 ) Text/Regex/Base.hs:55:13: warning: [-Wdeprecations] In the use of ‘versionTags’ (imported from Data.Version): Deprecated: "See GHC ticket #2496" [4 of 4] Compiling Text.Regex.Base.Impl ( Text/Regex/Base/Impl.hs, dist/build/Text/Regex/Base/Impl.o ) 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... Text/Regex/Base.hs:55:13: warning: [-Wdeprecations] In the use of ‘versionTags’ (imported from Data.Version): Deprecated: "See GHC ticket #2496" Haddock coverage: 94% ( 17 / 18) in 'Text.Regex.Base.RegexLike' Missing documentation for: MatchText (Text/Regex/Base/RegexLike.hs:55) 100% ( 1 / 1) in 'Text.Regex.Base.Context' 75% ( 3 / 4) in 'Text.Regex.Base' Missing documentation for: getVersion_Text_Regex_Base (Text/Regex/Base.hs:52) 33% ( 1 / 3) in 'Text.Regex.Base.Impl' Missing documentation for: polymatch (Text/Regex/Base/Impl.hs:50) polymatchM (Text/Regex/Base/Impl.hs:56) Documentation created: dist/doc/html/regex-base/index.html, dist/doc/html/regex-base/regex-base.txt Creating package registration file: /tmp/pkgConf-regex-base-0.932557895281266235189.2 Installing library in /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20160701/regex-base-0.93.2-71isvdwnRNrGKtKYo9rpQd Registering regex-base-0.93.2... cabal: Leaving directory '/tmp/cabal-tmp-21590/regex-base-0.93.2' Installed regex-base-0.93.2 cabal: Entering directory '/tmp/cabal-tmp-21590/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 ) Text/Regex/Posix.hs:72:13: warning: [-Wdeprecations] In the use of ‘versionTags’ (imported from Data.Version): Deprecated: "See GHC ticket #2496" 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... Text/Regex/Posix.hs:72:13: warning: [-Wdeprecations] In the use of ‘versionTags’ (imported from Data.Version): Deprecated: "See GHC ticket #2496" Haddock coverage: 40% ( 17 / 42) in 'Text.Regex.Posix.Wrap' Missing documentation for: RegOffsetT (Text/Regex/Posix/Wrap.hsc:166) =~ (Text/Regex/Posix/Wrap.hsc:320) =~~ (Text/Regex/Posix/Wrap.hsc:322) wrapCompile (Text/Regex/Posix/Wrap.hsc:298) wrapTest (Text/Regex/Posix/Wrap.hsc:303) wrapCount (Text/Regex/Posix/Wrap.hsc:317) unusedRegOffset (Text/Regex/Posix/Wrap.hsc:291) compExtended (Text/Regex/Posix/Wrap.hsc:416) compIgnoreCase (Text/Regex/Posix/Wrap.hsc:418) compNoSub (Text/Regex/Posix/Wrap.hsc:420) compNewline (Text/Regex/Posix/Wrap.hsc:422) execNotBOL (Text/Regex/Posix/Wrap.hsc:411) execNotEOL (Text/Regex/Posix/Wrap.hsc:413) retBadbr (Text/Regex/Posix/Wrap.hsc:427) retBadpat (Text/Regex/Posix/Wrap.hsc:429) retBadrpt (Text/Regex/Posix/Wrap.hsc:431) retEcollate (Text/Regex/Posix/Wrap.hsc:433) retEctype (Text/Regex/Posix/Wrap.hsc:435) retEescape (Text/Regex/Posix/Wrap.hsc:437) retEsubreg (Text/Regex/Posix/Wrap.hsc:439) retEbrack (Text/Regex/Posix/Wrap.hsc:441) retEparen (Text/Regex/Posix/Wrap.hsc:443) retEbrace (Text/Regex/Posix/Wrap.hsc:445) retErange (Text/Regex/Posix/Wrap.hsc:447) retEspace (Text/Regex/Posix/Wrap.hsc:449) 68% ( 17 / 25) in 'Text.Regex.Posix.String' Missing documentation for: unusedOffset (Text/Regex/Posix/String.hs:63) compile (Text/Regex/Posix/String.hs:87) compExtended (Text/Regex/Posix/Wrap.hsc:416) compIgnoreCase (Text/Regex/Posix/Wrap.hsc:418) compNoSub (Text/Regex/Posix/Wrap.hsc:420) compNewline (Text/Regex/Posix/Wrap.hsc:422) execNotBOL (Text/Regex/Posix/Wrap.hsc:411) execNotEOL (Text/Regex/Posix/Wrap.hsc:413) 67% ( 16 / 24) in 'Text.Regex.Posix.Sequence' Missing documentation for: unusedOffset (Text/Regex/Posix/Sequence.hs:67) compile (Text/Regex/Posix/Sequence.hs:91) compExtended (Text/Regex/Posix/Wrap.hsc:416) compIgnoreCase (Text/Regex/Posix/Wrap.hsc:418) compNoSub (Text/Regex/Posix/Wrap.hsc:420) compNewline (Text/Regex/Posix/Wrap.hsc:422) execNotBOL (Text/Regex/Posix/Wrap.hsc:411) execNotEOL (Text/Regex/Posix/Wrap.hsc:413) 68% ( 17 / 25) in 'Text.Regex.Posix.ByteString' Missing documentation for: unusedOffset (Text/Regex/Posix/ByteString.hs:143) regexec (Text/Regex/Posix/ByteString.hs:124) compExtended (Text/Regex/Posix/Wrap.hsc:416) compIgnoreCase (Text/Regex/Posix/Wrap.hsc:418) compNoSub (Text/Regex/Posix/Wrap.hsc:420) compNewline (Text/Regex/Posix/Wrap.hsc:422) execNotBOL (Text/Regex/Posix/Wrap.hsc:411) execNotEOL (Text/Regex/Posix/Wrap.hsc:413) 68% ( 17 / 25) in 'Text.Regex.Posix.ByteString.Lazy' Missing documentation for: unusedOffset (Text/Regex/Posix/ByteString/Lazy.hs:140) regexec (Text/Regex/Posix/ByteString/Lazy.hs:128) compExtended (Text/Regex/Posix/Wrap.hsc:416) compIgnoreCase (Text/Regex/Posix/Wrap.hsc:418) compNoSub (Text/Regex/Posix/Wrap.hsc:420) compNewline (Text/Regex/Posix/Wrap.hsc:422) execNotBOL (Text/Regex/Posix/Wrap.hsc:411) execNotEOL (Text/Regex/Posix/Wrap.hsc:413) 80% ( 4 / 5) in 'Text.Regex.Posix' Missing documentation for: getVersion_Text_Regex_Posix (Text/Regex/Posix.hs:69) Warning: Text.Regex.Posix.Wrap: could not find link destinations for: retNoMatch Warning: Text.Regex.Posix.String: could not find link destinations for: retNoMatch Warning: Text.Regex.Posix.Sequence: could not find link destinations for: retNoMatch Warning: Text.Regex.Posix.ByteString: could not find link destinations for: retNoMatch Warning: Text.Regex.Posix.ByteString.Lazy: could not find link destinations for: retNoMatch Documentation created: dist/doc/html/regex-posix/index.html, dist/doc/html/regex-posix/regex-posix.txt Creating package registration file: /tmp/pkgConf-regex-posix-0.951900553541400000569.2 Installing library in /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20160701/regex-posix-0.95.2-BbcuFE4RwTG3oQUmzAVjm Registering regex-posix-0.95.2... cabal: Leaving directory '/tmp/cabal-tmp-21590/regex-posix-0.95.2' Installed regex-posix-0.95.2 cabal: Entering directory '/tmp/cabal-tmp-21590/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 ) Text/Regex.hs:50:1: warning: [-Wtabs] Tab character found here, and in 24 further locations. Please use spaces instead. 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... Text/Regex.hs:63:12: warning: [-Wtabs] Tab character found here, and in six further locations. Please use spaces instead. Haddock coverage: 100% ( 9 / 9) in 'Text.Regex' Documentation created: dist/doc/html/regex-compat/index.html, dist/doc/html/regex-compat/regex-compat.txt Creating package registration file: /tmp/pkgConf-regex-compat-0.954524566821302539390.1 Installing library in /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20160701/regex-compat-0.95.1-4nLo9klb6Pk7Tun1BAC3he Registering regex-compat-0.95.1... cabal: Leaving directory '/tmp/cabal-tmp-21590/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.3.1.1 which failed to install. Win32-2.3.1.1 failed during the configure step. The exception was: ExitFailure 1