Resolving dependencies... Warning: The following packages are likely to be broken by the reinstalls: QuickCheck-2.10.1 Continuing even though the plan contains dangerous reinstalls. Configuring base-orphans-0.7... Configuring base-compat-0.10.1... Building base-compat-0.10.1... Building base-orphans-0.7... Installed base-orphans-0.7 Configuring base-prelude-1.3... Building base-prelude-1.3... Installed base-prelude-1.3 Configuring cabal-doctest-1.0.6... Building cabal-doctest-1.0.6... Installed base-compat-0.10.1 Configuring fingertree-0.1.4.1... Building fingertree-0.1.4.1... Installed cabal-doctest-1.0.6 Configuring mtl-compat-0.2.1.3... Building mtl-compat-0.2.1.3... Installed mtl-compat-0.2.1.3 Configuring numhask-0.2.3.0... Building numhask-0.2.3.0... Installed fingertree-0.1.4.1 Failed to install numhask-0.2.3.0 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/numhask-0.2.3.0-1YgXbJfzxXmL0JqdfzKkjP.log ): cabal: Entering directory '/tmp/cabal-tmp-7076/numhask-0.2.3.0' Configuring numhask-0.2.3.0... Preprocessing library for numhask-0.2.3.0.. Building library for numhask-0.2.3.0.. [ 1 of 16] Compiling NumHask.Algebra.Additive ( src/NumHask/Algebra/Additive.hs, dist/build/NumHask/Algebra/Additive.o ) [ 2 of 16] Compiling NumHask.Algebra.Magma ( src/NumHask/Algebra/Magma.hs, dist/build/NumHask/Algebra/Magma.o ) [ 3 of 16] Compiling NumHask.Algebra.Multiplicative ( src/NumHask/Algebra/Multiplicative.hs, dist/build/NumHask/Algebra/Multiplicative.o ) [ 4 of 16] Compiling NumHask.Algebra.Distribution ( src/NumHask/Algebra/Distribution.hs, dist/build/NumHask/Algebra/Distribution.o ) [ 5 of 16] Compiling NumHask.Algebra.Basis ( src/NumHask/Algebra/Basis.hs, dist/build/NumHask/Algebra/Basis.o ) [ 6 of 16] Compiling NumHask.Algebra.Ring ( src/NumHask/Algebra/Ring.hs, dist/build/NumHask/Algebra/Ring.o ) [ 7 of 16] Compiling NumHask.Algebra.Integral ( src/NumHask/Algebra/Integral.hs, dist/build/NumHask/Algebra/Integral.o ) [ 8 of 16] Compiling NumHask.Algebra.Field ( src/NumHask/Algebra/Field.hs, dist/build/NumHask/Algebra/Field.o ) [ 9 of 16] Compiling NumHask.Algebra.Metric ( src/NumHask/Algebra/Metric.hs, dist/build/NumHask/Algebra/Metric.o ) [10 of 16] Compiling NumHask.Algebra.Rational ( src/NumHask/Algebra/Rational.hs, dist/build/NumHask/Algebra/Rational.o ) [11 of 16] Compiling NumHask.Algebra.Module ( src/NumHask/Algebra/Module.hs, dist/build/NumHask/Algebra/Module.o ) [12 of 16] Compiling NumHask.Algebra.Singleton ( src/NumHask/Algebra/Singleton.hs, dist/build/NumHask/Algebra/Singleton.o ) [13 of 16] Compiling NumHask.Data.Complex ( src/NumHask/Data/Complex.hs, dist/build/NumHask/Data/Complex.o ) [14 of 16] Compiling NumHask.Algebra ( src/NumHask/Algebra.hs, dist/build/NumHask/Algebra.o ) [15 of 16] Compiling NumHask.Data ( src/NumHask/Data.hs, dist/build/NumHask/Data.o ) src/NumHask/Data.hs:46:29: error: Not in scope: type constructor or class ‘Semigroup’ | 46 | instance AdditiveMagma a => Semigroup (Sum a) where | ^^^^^^^^^ src/NumHask/Data.hs:90:35: error: Not in scope: type constructor or class ‘Semigroup’ | 90 | instance MultiplicativeMagma a => Semigroup (Product a) where | ^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-7076/numhask-0.2.3.0' Configuring primitive-0.6.4.0... Configuring semigroups-0.18.4... Building semigroups-0.18.4... Building primitive-0.6.4.0... Installed semigroups-0.18.4 Installed primitive-0.6.4.0 cabal: Error: some packages failed to install: numhask-0.2.3.0-1YgXbJfzxXmL0JqdfzKkjP failed during the building phase. The exception was: ExitFailure 1 numhask-histogram-0.1.3.0-CkH8oF3rstX7qdrFU9WtEi depends on numhask-histogram-0.1.3.0 which failed to install. numhask-prelude-0.1.0.1-8IYWzCSCgL68uRCNXUthhn depends on numhask-prelude-0.1.0.1 which failed to install. numhask-range-0.2.3.1-Dk6S5W7UADoDEfTz380nG7 depends on numhask-range-0.2.3.1 which failed to install.