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 hashable-1.3.0.0 Starting integer-logarithms-1.0.3 Starting numtype-dk-0.5.0.2 Starting primitive-0.7.0.0 Building hashable-1.3.0.0 Building numtype-dk-0.5.0.2 Building integer-logarithms-1.0.3 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.0 Building canon-0.1.1.0 Failed to install canon-0.1.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/canon-0.1.1.0-DEc76QVz4PyFe6AQ0ME9iE.log ): cabal: Entering directory '/tmp/cabal-tmp-25057/canon-0.1.1.0' Configuring canon-0.1.1.0... Preprocessing library for canon-0.1.1.0.. Building library for canon-0.1.1.0.. [1 of 6] Compiling Math.NumberTheory.Canon.Internals ( Math/NumberTheory/Canon/Internals.hs, dist/build/Math/NumberTheory/Canon/Internals.o ) Math/NumberTheory/Canon/Internals.hs:269:20: error: • Couldn't match type ‘Word’ with ‘Int’ Expected type: ([(Integer, Int)], Bool) Actual type: ([(Integer, Word)], Bool) • In the expression: defStdGenFact (mkStdGen $ fromInteger n `xor` 0xdeadbeef) In the expression: if crFactCutoff > 0 then defStdGenFact (mkStdGen $ fromInteger n `xor` 0xdeadbeef) else (factorise' n, True) In an equation for ‘factorize’: factorize n = if crFactCutoff > 0 then defStdGenFact (mkStdGen $ fromInteger n `xor` 0xdeadbeef) else (factorise' n, True) where defStdGenFact sg = let ... in (sfs ++ ..., case mb of Nothing -> ... Just m -> ...) | 269 | then defStdGenFact (mkStdGen $ fromInteger n `xor` 0xdeadbeef) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Math/NumberTheory/Canon/Internals.hs:270:21: error: • Couldn't match type ‘Word’ with ‘Int’ Expected type: [(Integer, Int)] Actual type: [(Integer, Word)] • In the expression: factorise' n In the expression: (factorise' n, True) In the expression: if crFactCutoff > 0 then defStdGenFact (mkStdGen $ fromInteger n `xor` 0xdeadbeef) else (factorise' n, True) | 270 | else (factorise' n, True) -- call underlying routine from arithmoi | ^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-25057/canon-0.1.1.0' cabal: Error: some packages failed to install: canon-0.1.1.0-DEc76QVz4PyFe6AQ0ME9iE failed during the building phase. The exception was: ExitFailure 1