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 base-orphans-0.8 Starting dlist-0.8.0.5 Starting data-default-class-0.1.2.0 Starting blaze-builder-0.4.1.0 Building base-orphans-0.8 Building data-default-class-0.1.2.0 Building dlist-0.8.0.5 Building blaze-builder-0.4.1.0 Completed base-orphans-0.8 Starting hashable-1.2.7.0 Completed data-default-class-0.1.2.0 Starting integer-logarithms-1.0.2.2 Building hashable-1.2.7.0 Building integer-logarithms-1.0.2.2 Completed dlist-0.8.0.5 Starting natural-sort-0.1.2 Building natural-sort-0.1.2 Completed blaze-builder-0.4.1.0 Starting network-3.0.1.0 Completed integer-logarithms-1.0.2.2 Starting old-locale-1.0.0.7 Building old-locale-1.0.0.7 Completed natural-sort-0.1.2 Starting parseargs-0.2.0.9 Building parseargs-0.2.0.9 Completed hashable-1.2.7.0 Starting primitive-0.6.4.0 Completed old-locale-1.0.0.7 Starting random-1.1 Building primitive-0.6.4.0 Building random-1.1 Building network-3.0.1.0 Completed parseargs-0.2.0.9 Starting regex-base-0.93.2 Completed random-1.1 Starting safe-0.3.17 Building regex-base-0.93.2 Building safe-0.3.17 Completed regex-base-0.93.2 Starting semigroups-0.18.5 Building semigroups-0.18.5 Completed safe-0.3.17 Starting split-0.2.3.3 Completed semigroups-0.18.5 Starting transformers-compat-0.6.2 Building split-0.2.3.3 Building transformers-compat-0.6.2 Completed network-3.0.1.0 Starting unliftio-core-0.1.2.0 Building unliftio-core-0.1.2.0 Completed split-0.2.3.3 Starting zlib-0.6.2 Building zlib-0.6.2 Completed unliftio-core-0.1.2.0 Starting data-default-instances-containers-0.0.1 Building data-default-instances-containers-0.0.1 Completed transformers-compat-0.6.2 Starting data-default-instances-dlist-0.0.1 Building data-default-instances-dlist-0.0.1 Completed primitive-0.6.4.0 Starting unordered-containers-0.2.10.0 Completed data-default-instances-containers-0.0.1 Starting async-2.2.1 Building unordered-containers-0.2.10.0 Completed data-default-instances-dlist-0.0.1 Starting old-time-1.1.0.3 Building async-2.2.1 Building old-time-1.1.0.3 Completed async-2.2.1 Starting data-default-instances-old-locale-0.0.1 Completed zlib-0.6.2 Starting regex-tdfa-1.2.3.1 Building data-default-instances-old-locale-0.0.1 Building regex-tdfa-1.2.3.1 Completed data-default-instances-old-locale-0.0.1 Starting transformers-base-0.4.5.2 Building transformers-base-0.4.5.2 Completed old-time-1.1.0.3 Starting mmorph-1.1.2 Building mmorph-1.1.2 Completed transformers-base-0.4.5.2 Starting exceptions-0.10.0 Building exceptions-0.10.0 Completed mmorph-1.1.2 Starting vector-0.12.0.2 Building vector-0.12.0.2 Completed unordered-containers-0.2.10.0 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed exceptions-0.10.0 Starting typed-process-0.2.4.0 Building typed-process-0.2.4.0 Completed scientific-0.3.6.2 Starting streaming-commons-0.2.1.0 Completed typed-process-0.2.4.0 Starting data-default-0.7.1.1 Building streaming-commons-0.2.1.0 Building data-default-0.7.1.1 Completed data-default-0.7.1.1 Starting monad-control-1.0.2.3 Building monad-control-1.0.2.3 Completed regex-tdfa-1.2.3.1 Starting resourcet-1.2.2 Building resourcet-1.2.2 Completed monad-control-1.0.2.3 Starting hscurses-1.4.2.0 Completed streaming-commons-0.2.1.0 Failed to install hscurses-1.4.2.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hscurses-1.4.2.0-3g8JXl4kM4jIlNQIX7hpF8.log ): cabal: Entering directory '/tmp/cabal-tmp-11781/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 Starting attoparsec-0.13.2.2 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-11781/hscurses-1.4.2.0' Building attoparsec-0.13.2.2 Completed resourcet-1.2.2 Completed attoparsec-0.13.2.2 Completed vector-0.12.0.2 cabal: Error: some packages failed to install: cursedcsv-0.1.3-Lu2jBPUbKiSJWRqqAXOng9 depends on cursedcsv-0.1.3 which failed to install. hscurses-1.4.2.0-3g8JXl4kM4jIlNQIX7hpF8 failed during the configure step. The exception was: ExitFailure 1