Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting clock-0.8 Starting old-locale-1.0.0.7 Starting pcre-light-0.4.0.4 Starting base-orphans-0.8.1 Building clock-0.8 Building old-locale-1.0.0.7 Building base-orphans-0.8.1 Building pcre-light-0.4.0.4 Completed base-orphans-0.8.1 Starting transformers-compat-0.6.5 Completed old-locale-1.0.0.7 Starting utf8-string-1.0.1.1 Building transformers-compat-0.6.5 Completed clock-0.8 Starting zlib-0.6.2.1 Building utf8-string-1.0.1.1 Building zlib-0.6.2.1 Completed pcre-light-0.4.0.4 Starting old-time-1.1.0.3 Building old-time-1.1.0.3 Completed transformers-compat-0.6.5 Starting transformers-base-0.4.5.2 Building transformers-base-0.4.5.2 Completed utf8-string-1.0.1.1 Starting mmorph-1.1.3 Building mmorph-1.1.3 Completed transformers-base-0.4.5.2 Starting exceptions-0.10.3 Building exceptions-0.10.3 Completed old-time-1.1.0.3 Starting monad-control-1.0.2.3 Completed zlib-0.6.2.1 Starting mersenne-random-1.0.0.1 Building monad-control-1.0.2.3 Building mersenne-random-1.0.0.1 Completed mmorph-1.1.3 Completed monad-control-1.0.2.3 Starting monad-extras-0.6.0 Completed mersenne-random-1.0.0.1 Building monad-extras-0.6.0 Completed exceptions-0.10.3 Starting hscurses-1.4.2.0 Completed monad-extras-0.6.0 Failed to install hscurses-1.4.2.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hscurses-1.4.2.0-4sk0E79KuNMBKt6QzYLI59.log ): cabal: Entering directory '/tmp/cabal-tmp-6658/hscurses-1.4.2.0' Configuring hscurses-1.4.2.0... checking for gcc... /usr/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking for addnstr in -lcurses... no checking for addnstr in -lncurses... no checking for waddnwstr in -lncursesw... no checking for addnstr in -lpdcurses... no checking for waddnwstr in -lpdcursesw... no checking for iconv in -liconv... no checking for libiconv in -liconv... no checking for libiconv... no checking how to run the C preprocessor... /usr/bin/gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/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 iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking curses.h usability... no checking curses.h presence... no checking for curses.h... no checking ncurses.h usability... no checking ncurses.h presence... no checking for ncurses.h... no checking ncursesw/ncurses.h usability... no checking ncursesw/ncurses.h presence... no checking for ncursesw/ncurses.h... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes configure: creating ./config.status config.status: creating hscurses.buildinfo config.status: creating cbits/config.h cabal: Missing dependency on a foreign library: * Missing (or bad) header file: HSCurses.h * Missing (or bad) C library: curses This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library 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. 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-6658/hscurses-1.4.2.0' cabal: Error: some packages failed to install: hmp3-ng-2.7.0-CYIKepbaeDPFfkfPMGTNtp depends on hmp3-ng-2.7.0 which failed to install. hscurses-1.4.2.0-4sk0E79KuNMBKt6QzYLI59 failed during the configure step. The exception was: ExitFailure 1