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 random-1.1 Building random-1.1 Completed random-1.1 Starting hedra-0.1 Building hedra-0.1 Failed to install hedra-0.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hedra-0.1-B0WUWytgPel4yP5M0BKBlw.log ): cabal: Entering directory '/tmp/cabal-tmp-26747/hedra-0.1' Configuring hedra-0.1... Preprocessing library for hedra-0.1.. Building library for hedra-0.1.. [1 of 1] Compiling Hedra ( src/Hedra.hs, dist/build/Hedra.o ) Preprocessing executable 'hedra' for hedra-0.1.. Building executable 'hedra' for hedra-0.1.. [1 of 1] Compiling Main ( app/Main.hs, dist/build/hedra/hedra-tmp/Main.o ) Linking dist/build/hedra/hedra ... /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-26747/hedra-0.1' cabal: Error: some packages failed to install: hedra-0.1-B0WUWytgPel4yP5M0BKBlw failed during the building phase. The exception was: ExitFailure 1