Resolving dependencies... Downloading editline-0.2... Configuring editline-0.2... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for tputs in -lncurses... yes checking for el_init... yes checking for readline... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking editline/readline.h usability... yes checking editline/readline.h presence... yes checking for editline/readline.h... yes checking for sign of read_history result on error... positive configure: creating ./config.status config.status: creating editline.buildinfo config.status: creating include/HsEditlineConfig.h cabal: Bad header file: HsEditline.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 editline-0.2 cabal: Error: some packages failed to install: editline-0.2 failed during the configure step. The exception was: ExitFailure 1