Resolving dependencies... Downloading socket-0.4.0.0... Configuring socket-0.4.0.0... Warning: 'include-dirs: platform/linux/include' directory does not exist. Warning: 'hs-source-dirs: platform/linux/src' directory does not exist. Building socket-0.4.0.0... Preprocessing library socket-0.4.0.0... Socket.hsc:203:23: fatal error: hs_socket.h: No such file or directory compilation terminated. compiling dist/build/System/Socket_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/System/Socket_hsc_make.c -o dist/build/System/Socket_hsc_make.o -fno-stack-protector -D__GLASGOW_HASKELL__=708 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iplatform/linux/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/7.8.3/lib/ghc-7.8.3/bytestring-0.10.4.0/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/base-4.7.0.1/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/integer-gmp-0.5.1.0/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/include -I/opt/ghc/7.8.3/lib/ghc-7.8.3/include/ Failed to install socket-0.4.0.0 cabal: Error: some packages failed to install: socket-0.4.0.0 failed during the building phase. The exception was: ExitFailure 1