Resolving dependencies... Downloading com-1.2.0... Configuring com-1.2.0... cabal: Missing dependencies on foreign libraries: * Missing C libraries: kernel32, user32, ole32, oleaut32, advapi32 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. * Bad header file: include/WideStringSrc.h The header file contains a compile error. You can re-run configure with the verbosity flag -v3 to see the error messages from the C compiler. Failed to install com-1.2.0 cabal: Error: some packages failed to install: com-1.2.0 failed during the configure step. The exception was: ExitFailure 1