Resolving dependencies... Downloading mage-1.1.0... Configuring mage-1.1.0... 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 Keys ( src/Keys.hs, dist/build/mage/mage-tmp/Keys.o ) [ 3 of 30] Compiling Util.PQueue ( src/Util/PQueue.hs, dist/build/mage/mage-tmp/Util/PQueue.o ) [ 4 of 30] Compiling BoxChar ( src/BoxChar.hs, dist/build/mage/mage-tmp/BoxChar.o ) [ 5 of 30] Compiling Util.Search ( src/Util/Search.hs, dist/build/mage/mage-tmp/Util/Search.o ) src/Util/Search.hs:5:1: Warning: The import of `Data.List' is redundant except perhaps to import instances from `Data.List' To import instances alone, use: import Data.List() [ 6 of 30] Compiling BodyParts ( src/BodyParts.hs, dist/build/mage/mage-tmp/BodyParts.o ) [ 7 of 30] Compiling Body ( src/Body.hs, dist/build/mage/mage-tmp/Body.o ) [ 8 of 30] Compiling Util.Grid ( src/Util/Grid.hs, dist/build/mage/mage-tmp/Util/Grid.o ) [ 9 of 30] Compiling Util ( src/Util.hs, dist/build/mage/mage-tmp/Util.o ) [10 of 30] Compiling RandT ( src/RandT.hs, dist/build/mage/mage-tmp/RandT.o ) src/RandT.hs:27:30: Could not deduce (Functor m) arising from a use of `fmap' from the context (Monad m) bound by the instance declaration at src/RandT.hs:26:10-39 Possible fix: add (Functor m) to the context of the type signature for fmap :: (a -> b) -> RandT m a -> RandT m b or the instance declaration In the second argument of `($)', namely `fmap f m' In the expression: RandT $ fmap f m In an equation for `fmap': fmap f (RandT m) = RandT $ fmap f m Failed to install 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