Resolving dependencies... Configuring random-1.1... Configuring mtl-2.2.1... Building random-1.1... Building mtl-2.2.1... Installed random-1.1 Installed mtl-2.2.1 Configuring mage-1.1.0... Building mage-1.1.0... Failed to install mage-1.1.0 Build log ( /home/builder/.cabal/logs/mage-1.1.0.log ): cabal: Entering directory '/tmp/cabal-tmp-32223/mage-1.1.0' Configuring mage-1.1.0... Warning: 'ghc-options: -prof' is not necessary and will lead to problems when used on a library. Use the configure flag --enable-library-profiling and/or --enable-profiling. Building mage-1.1.0... Preprocessing executable 'mage' for mage-1.1.0... on the commandline: warning: The -fvia-c flag does nothing; it will be removed in a future GHC release [ 1 of 30] Compiling Util.Text ( src/Util/Text.hs, dist/build/mage/mage-tmp/Util/Text.o ) [ 2 of 30] Compiling Util.PQueue ( src/Util/PQueue.hs, dist/build/mage/mage-tmp/Util/PQueue.o ) [ 3 of 30] Compiling Util.Search ( src/Util/Search.hs, dist/build/mage/mage-tmp/Util/Search.o ) src/Util/Search.hs:5:1: warning: [-Wunused-imports] The import of ‘Data.List’ is redundant except perhaps to import instances from ‘Data.List’ To import instances alone, use: import Data.List() [ 4 of 30] Compiling Util.Grid ( src/Util/Grid.hs, dist/build/mage/mage-tmp/Util/Grid.o ) [ 5 of 30] Compiling Util ( src/Util.hs, dist/build/mage/mage-tmp/Util.o ) [ 6 of 30] Compiling RandT ( src/RandT.hs, dist/build/mage/mage-tmp/RandT.o ) src/RandT.hs:29:10: error: • Could not deduce (Applicative (RandT m)) arising from the superclasses of an instance declaration from the context: Monad m bound by the instance declaration at src/RandT.hs:29:10-37 • In the instance declaration for ‘Monad (RandT m)’ src/RandT.hs:34:10: error: • Could not deduce (GHC.Base.Alternative (RandT m)) arising from the superclasses of an instance declaration from the context: MonadPlus m bound by the instance declaration at src/RandT.hs:34:10-45 • In the instance declaration for ‘MonadPlus (RandT m)’ cabal: Leaving directory '/tmp/cabal-tmp-32223/mage-1.1.0' cabal: Error: some packages failed to install: mage-1.1.0 failed during the building phase. The exception was: ExitFailure 1