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 th-abstraction-0.2.10.0 Starting syb-0.7 Building th-abstraction-0.2.10.0 Building syb-0.7 Completed syb-0.7 Completed th-abstraction-0.2.10.0 Starting th-lift-0.7.11 Building th-lift-0.7.11 Completed th-lift-0.7.11 Starting prolog-0.2.1 Building prolog-0.2.1 Failed to install prolog-0.2.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/prolog-0.2.1-Ah5zRdxB8rN6iaL4U20t1A.log ): cabal: Entering directory '/tmp/cabal-tmp-723/prolog-0.2.1' Configuring prolog-0.2.1... Preprocessing library for prolog-0.2.1.. Building library for prolog-0.2.1.. [ 1 of 11] Compiling Syntax ( src/Syntax.hs, dist/build/Syntax.o ) [ 2 of 11] Compiling Parser ( src/Parser.hs, dist/build/Parser.o ) [ 3 of 11] Compiling Database ( src/Database.hs, dist/build/Database.o ) src/Database.hs:31:22: error: • Data.Map.insertWith' is gone. Use Data.Map.Strict.insertWith. • In the expression: Map.insertWith' (++) (signature (lhs clause)) [clause] In the first argument of ‘foldr’, namely ‘(\ clause -> Map.insertWith' (++) (signature (lhs clause)) [clause])’ In the second argument of ‘($)’, namely ‘foldr (\ clause -> Map.insertWith' (++) (signature (lhs clause)) [clause]) (Map.fromList [(signature (Struct name []), []) | name <- emptyPredicates]) clauses’ | 31 | foldr (\clause -> Map.insertWith' (++) (signature (lhs clause)) [clause]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-723/prolog-0.2.1' cabal: Error: some packages failed to install: prolog-0.2.1-Ah5zRdxB8rN6iaL4U20t1A failed during the building phase. The exception was: ExitFailure 1