while installing hlint using:
stack install hlint
this results
ghc-lib-parser-ex> configure
ghc-lib-parser-ex> Configuring ghc-lib-parser-ex-8.10.0.19...
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../haskeline-0.8.0.1/libHShaskeline-0.8.0.1-ghc8.10.4.so)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../ghc-8.10.4/libHSghc-8.10.4-ghc8.10.4.so)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.10.4.so)
ghc-lib-parser-ex> build
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc-pkg: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc-pkg)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc-pkg: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.10.4.so)
ghc-lib-parser-ex> Preprocessing library for ghc-lib-parser-ex-8.10.0.19..
ghc-lib-parser-ex> Building library for ghc-lib-parser-ex-8.10.0.19..
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../haskeline-0.8.0.1/libHShaskeline-0.8.0.1-ghc8.10.4.so)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../ghc-8.10.4/libHSghc-8.10.4-ghc8.10.4.so)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.10.4.so)
ghc-lib-parser-ex> [ 1 of 20] Compiling Language.Haskell.GhclibParserEx.Dump
ghc-lib-parser-ex> [ 2 of 20] Compiling Language.Haskell.GhclibParserEx.Fixity
ghc-lib-parser-ex> [ 3 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Driver.Flags
ghc-lib-parser-ex> [ 4 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Driver.Session
ghc-lib-parser-ex> [ 5 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs
ghc-lib-parser-ex> [ 6 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.Binds
ghc-lib-parser-ex> [ 7 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.Decls
ghc-lib-parser-ex> [ 8 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.Expr
ghc-lib-parser-ex> [ 9 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.ExtendInstances
ghc-lib-parser-ex> [10 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.ImpExp
ghc-lib-parser-ex> [11 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.Pat
ghc-lib-parser-ex> [12 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Hs.Types
ghc-lib-parser-ex> [13 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Parser
ghc-lib-parser-ex> [14 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Settings.Config
ghc-lib-parser-ex> [15 of 20] Compiling Language.Haskell.GhclibParserEx.Config
ghc-lib-parser-ex> [16 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Types.Name.Reader
ghc-lib-parser-ex> [17 of 20] Compiling Language.Haskell.GhclibParserEx.GHC.Utils.Outputable
ghc-lib-parser-ex> [18 of 20] Compiling Language.Haskell.GhclibParserEx.Outputable
ghc-lib-parser-ex> [19 of 20] Compiling Language.Haskell.GhclibParserEx.Parse
ghc-lib-parser-ex> [20 of 20] Compiling Paths_ghc_lib_parser_ex
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../haskeline-0.8.0.1/libHShaskeline-0.8.0.1-ghc8.10.4.so)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../ghc-8.10.4/libHSghc-8.10.4-ghc8.10.4.so)
ghc-lib-parser-ex> /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/ghc: /usr/lib64/libtinfo.so.5: no version information available (required by /home/welcome/.stack/programs/x86_64-linux/ghc-8.10.4/lib/ghc-8.10.4/bin/../terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.10.4.so)
ghc-lib-parser-ex> /usr/bin/ld.bfd: cannot find -ltinfo
ghc-lib-parser-ex> collect2: error: ld returned 1 exit status
ghc-lib-parser-ex>
gcc' failed in phase `Linker'. (Exit code: 1)
Progress 1/2
-- While building package ghc-lib-parser-ex-8.10.0.19 (scroll up to its section to see the error) using:
/home/welcome/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
`
Looks like problem is here
/usr/lib64/libtinfo.so.5: no version information available
Stack version:Version 2.7.1, Git revision 8afe0c2932716b0441cf4440d6942c59568b6b19 x86_64 hpack-0.34.4