Resolving dependencies... Configuring IfElse-0.85... Configuring colour-2.3.4... Building IfElse-0.85... Building colour-2.3.4... Installed IfElse-0.85 Configuring data-default-class-0.1.2.0... Building data-default-class-0.1.2.0... Installed data-default-class-0.1.2.0 Configuring dlist-0.8.0.4... Building dlist-0.8.0.4... Installed colour-2.3.4 Configuring monad-loops-0.4.3... Installed dlist-0.8.0.4 Configuring ncurses-0.2.16... Building monad-loops-0.4.3... Failed to install ncurses-0.2.16 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/ncurses-0.2.16-JV6V2siphMXDVnLUtNgbL.log ): cabal: Entering directory '/tmp/cabal-tmp-10647/ncurses-0.2.16' Configuring ncurses-0.2.16... cabal: Missing dependencies on foreign libraries: * Missing (or bad) C libraries: panelw, ncursesw This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.If the library files do 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-10647/ncurses-0.2.16' Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Installed monad-loops-0.4.3 Installed old-locale-1.0.0.7 cabal: Error: some packages failed to install: ncurses-0.2.16-JV6V2siphMXDVnLUtNgbL failed during the configure step. The exception was: ExitFailure 1 scroll-1.20180421-BoDGoeNk4SC1yMCScuZqo7 depends on scroll-1.20180421 which failed to install.