Resolving dependencies... [1 of 1] Compiling Main ( /tmp/cabal-tmp-11927/postgresql-libpq-0.9.1.0/dist/setup/setup.hs, /tmp/cabal-tmp-11927/postgresql-libpq-0.9.1.0/dist/setup/Main.o ) Linking /tmp/cabal-tmp-11927/postgresql-libpq-0.9.1.0/dist/setup/setup ... Configuring postgresql-libpq-0.9.1.0... Building postgresql-libpq-0.9.1.0... Preprocessing library postgresql-libpq-0.9.1.0... LibPQ.hsc:215:28: fatal error: noticehandlers.h: No such file or directory compilation terminated. compiling dist/build/Database/PostgreSQL/LibPQ_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/Database/PostgreSQL/LibPQ_hsc_make.c -o dist/build/Database/PostgreSQL/LibPQ_hsc_make.o -fno-stack-protector -D__GLASGOW_HASKELL__=710 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -I/usr/include/postgresql -Icbits -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/7.10.2/lib/ghc-7.10.2/bytes_6elQVSg5cWdFrvRnfxTUrH/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/base_GDytRqRVSUX7zckgKqJjgw/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/include -I/opt/ghc/7.10.2/lib/ghc-7.10.2/include/ Failed to install postgresql-libpq-0.9.1.0 cabal: Error: some packages failed to install: postgresql-libpq-0.9.1.0 failed during the building phase. The exception was: ExitFailure 1