Resolving dependencies... Configuring mtl-2.2.1... Configuring Win32-2.5.0.0... Building mtl-2.2.1... Failed to install Win32-2.5.0.0 Build log ( /home/builder/.cabal/logs/Win32-2.5.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-28293/Win32-2.5.0.0' Configuring Win32-2.5.0.0... cabal: Missing dependencies on foreign libraries: * Missing (or bad) header file: alphablend.h * Missing C libraries: user32, gdi32, winmm, advapi32, shell32, shfolder, shlwapi, msimg32, imm32, ntdll 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-28293/Win32-2.5.0.0' Configuring primitive-0.6.2.0... Building primitive-0.6.2.0... Configuring safe-0.3.10... Installed mtl-2.2.1 Building safe-0.3.10... Installed safe-0.3.10 Configuring syb-0.6... Building syb-0.6... Configuring text-1.2.2.1... Installed primitive-0.6.2.0 Building text-1.2.2.1... Configuring th-lift-0.7.6... Installed syb-0.6 Building th-lift-0.7.6... Installed th-lift-0.7.6 Configuring th-expand-syns-0.4.2.0... Building th-expand-syns-0.4.2.0... Configuring vector-0.12.0.0... Installed th-expand-syns-0.4.2.0 Building vector-0.12.0.0... Configuring th-reify-many-0.1.6... Installed text-1.2.2.1 Building th-reify-many-0.1.6... Installed th-reify-many-0.1.6 Installed vector-0.12.0.0 Configuring th-lift-instances-0.1.11... Building th-lift-instances-0.1.11... Installed th-lift-instances-0.1.11 Configuring th-orphans-0.13.3... Building th-orphans-0.13.3... Installed th-orphans-0.13.3 Configuring th-utilities-0.2.0.1... Building th-utilities-0.2.0.1... Installed th-utilities-0.2.0.1 cabal: Error: some packages failed to install: Win32-2.5.0.0 failed during the configure step. The exception was: ExitFailure 1 Win32-shortcut-0.0.1 depends on Win32-2.5.0.0 which failed to install.