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 bitarray-0.0.1.1 Starting parser-combinators-1.2.1 Starting hs-functors-0.1.4.0 Starting Cabal-3.0.0.0 Building bitarray-0.0.1.1 Building hs-functors-0.1.4.0 Building parser-combinators-1.2.1 Building Cabal-3.0.0.0 Completed bitarray-0.0.1.1 Starting regex-applicative-0.3.3.1 Completed parser-combinators-1.2.1 Starting util-0.1.15.0 Building regex-applicative-0.3.3.1 Building util-0.1.15.0 Completed regex-applicative-0.3.3.1 Starting unicode-transforms-0.3.6 Completed util-0.1.15.0 Building unicode-transforms-0.3.6 Completed hs-functors-0.1.4.0 Completed unicode-transforms-0.3.6 Completed Cabal-3.0.0.0 Starting ucd-0.0.1.3 Building ucd-0.0.1.3 Warning: /tmp/pkgConf-ucd-0.0.1.3-26005/pkgConf: .:3:1: Unknown field: "visibility" Completed ucd-0.0.1.3 Starting lex-applicative-0.0.0.0 Building lex-applicative-0.0.0.0 Failed to install lex-applicative-0.0.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/lex-applicative-0.0.0.0-HADGdnYJv0pLWFETjmpMj1.log ): cabal: Entering directory '/tmp/cabal-tmp-26005/lex-applicative-0.0.0.0' Configuring lex-applicative-0.0.0.0... Preprocessing library for lex-applicative-0.0.0.0.. Building library for lex-applicative-0.0.0.0.. [1 of 3] Compiling Data.TextPos ( src/Data/TextPos.hs, dist/build/Data/TextPos.o ) [2 of 3] Compiling Text.Lexer ( src/Text/Lexer.hs, dist/build/Text/Lexer.o ) src/Text/Lexer.hs:11:46: error: Module ‘Text.Regex.Applicative’ does not export ‘findLongestPrefix'’ | 11 | import Text.Regex.Applicative (RE, findLongestPrefix') | ^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-26005/lex-applicative-0.0.0.0' cabal: Error: some packages failed to install: lex-applicative-0.0.0.0-HADGdnYJv0pLWFETjmpMj1 failed during the building phase. The exception was: ExitFailure 1