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 wl-pprint-1.2.1 Starting hashable-1.2.7.0 Building wl-pprint-1.2.1 Building hashable-1.2.7.0 Completed wl-pprint-1.2.1 Completed hashable-1.2.7.0 Starting unordered-containers-0.2.9.0 Building unordered-containers-0.2.9.0 Completed unordered-containers-0.2.9.0 Downloading expresso-0.1.1.0 Downloaded expresso-0.1.1.0 Starting expresso-0.1.1.0 Building expresso-0.1.1.0 Failed to install expresso-0.1.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/expresso-0.1.1.0-HB7hyUxl9bQGgrfuYBsVCM.log ): cabal: Entering directory '/tmp/cabal-tmp-6111/expresso-0.1.1.0' Configuring expresso-0.1.1.0... Preprocessing executable 'expresso' for expresso-0.1.1.0.. Building executable 'expresso' for expresso-0.1.1.0.. [1 of 9] Compiling Expresso.Pretty ( src/Expresso/Pretty.hs, dist/build/expresso/expresso-tmp/Expresso/Pretty.o ) [2 of 9] Compiling Expresso.Utils ( src/Expresso/Utils.hs, dist/build/expresso/expresso-tmp/Expresso/Utils.o ) [3 of 9] Compiling Expresso.Type ( src/Expresso/Type.hs, dist/build/expresso/expresso-tmp/Expresso/Type.o ) [4 of 9] Compiling Expresso.Syntax ( src/Expresso/Syntax.hs, dist/build/expresso/expresso-tmp/Expresso/Syntax.o ) [5 of 9] Compiling Expresso.TypeCheck ( src/Expresso/TypeCheck.hs, dist/build/expresso/expresso-tmp/Expresso/TypeCheck.o ) [6 of 9] Compiling Expresso.Parser ( src/Expresso/Parser.hs, dist/build/expresso/expresso-tmp/Expresso/Parser.o ) [7 of 9] Compiling Expresso.Eval ( src/Expresso/Eval.hs, dist/build/expresso/expresso-tmp/Expresso/Eval.o ) [8 of 9] Compiling Expresso ( src/Expresso.hs, dist/build/expresso/expresso-tmp/Expresso.o ) [9 of 9] Compiling Main ( src/Repl.hs, dist/build/expresso/expresso-tmp/Main.o ) Linking dist/build/expresso/expresso ... /usr/bin/ld.gold: error: cannot find -ltinfo /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x183): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x1bb): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x1dd): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x20b): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.r9zE_info+0x102): error: undefined reference to 'tigetnum' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.r9zF_info+0x102): error: undefined reference to 'tigetflag' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.r9zG_info+0xfa): error: undefined reference to 'tigetstr' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9IB_info+0x23c): error: undefined reference to 'tparm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9Kw_info+0x132): error: undefined reference to 'del_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9Kw_info+0x241): error: undefined reference to 'setupterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9Mm_info+0x131): error: undefined reference to 'tputs' collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-6111/expresso-0.1.1.0' cabal: Error: some packages failed to install: expresso-0.1.1.0-HB7hyUxl9bQGgrfuYBsVCM failed during the building phase. The exception was: ExitFailure 1