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 integer-logarithms-1.0.3 Starting hashable-1.3.0.0 Starting numtype-dk-0.5.0.2 Starting primitive-0.7.0.0 Building numtype-dk-0.5.0.2 Building integer-logarithms-1.0.3 Building hashable-1.3.0.0 Building primitive-0.7.0.0 Completed numtype-dk-0.5.0.2 Starting random-1.1 Completed integer-logarithms-1.0.3 Starting exact-pi-0.5.0.1 Building random-1.1 Building exact-pi-0.5.0.1 Completed hashable-1.3.0.0 Starting unordered-containers-0.2.10.0 Building unordered-containers-0.2.10.0 Completed exact-pi-0.5.0.1 Completed random-1.1 Completed primitive-0.7.0.0 Starting vector-0.12.0.3 Building vector-0.12.0.3 Completed unordered-containers-0.2.10.0 Starting semirings-0.4.1 Building semirings-0.4.1 Completed semirings-0.4.1 Completed vector-0.12.0.3 Starting arithmoi-0.9.0.0 Building arithmoi-0.9.0.0 Completed arithmoi-0.9.0.0 Starting canon-0.1.1.1 Building canon-0.1.1.1 Failed to install canon-0.1.1.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/canon-0.1.1.1-7yDOgBPAAEJ5dQQ2K1ZNgz.log ): cabal: Entering directory '/tmp/cabal-tmp-11597/canon-0.1.1.1' Configuring canon-0.1.1.1... Preprocessing library for canon-0.1.1.1.. Building library for canon-0.1.1.1.. [1 of 6] Compiling Math.NumberTheory.Canon.Internals ( Math/NumberTheory/Canon/Internals.hs, dist/build/Math/NumberTheory/Canon/Internals.o ) [2 of 6] Compiling Math.NumberTheory.Canon.AurifCyclo ( Math/NumberTheory/Canon/AurifCyclo.hs, dist/build/Math/NumberTheory/Canon/AurifCyclo.o ) [3 of 6] Compiling Math.NumberTheory.Canon.Additive ( Math/NumberTheory/Canon/Additive.hs, dist/build/Math/NumberTheory/Canon/Additive.o ) [4 of 6] Compiling Math.NumberTheory.Canon.Simple ( Math/NumberTheory/Canon/Simple.hs, dist/build/Math/NumberTheory/Canon/Simple.o ) [5 of 6] Compiling Math.NumberTheory.Canon ( Math/NumberTheory/Canon.hs, dist/build/Math/NumberTheory/Canon.o ) Math/NumberTheory/Canon.hs:2269:46: error: • Couldn't match type ‘arithmoi-0.9.0.0:Math.NumberTheory.Primes.Types.Prime Integer’ with ‘Integer’ Expected type: [Integer] Actual type: [arithmoi-0.9.0.0:Math.NumberTheory.Primes.Types.Prime Integer] • In the second argument of ‘($)’, namely ‘take 1000 primes’ In the expression: map (\ p -> Bare p Simp) $ take 1000 primes In an equation for ‘smallPrimeCanons’: smallPrimeCanons = map (\ p -> Bare p Simp) $ take 1000 primes | 2269 | smallPrimeCanons = map (\p -> Bare p Simp) $ take 1000 primes | ^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-11597/canon-0.1.1.1' cabal: Error: some packages failed to install: canon-0.1.1.1-7yDOgBPAAEJ5dQQ2K1ZNgz failed during the building phase. The exception was: ExitFailure 1