Resolving dependencies... Configuring mtl-2.2.1... Configuring random-1.1... Building random-1.1... Building mtl-2.2.1... Configuring primitive-0.6.1.0... Installed random-1.1 Building primitive-0.6.1.0... Configuring text-1.2.2.1... Installed mtl-2.2.1 Building text-1.2.2.1... Configuring utf8-string-1.0.1.1... Installed primitive-0.6.1.0 Building utf8-string-1.0.1.1... Installed utf8-string-1.0.1.1 Configuring vector-0.11.0.0... Building vector-0.11.0.0... Installed text-1.2.2.1 Configuring hashable-1.2.4.0... Building hashable-1.2.4.0... Installed hashable-1.2.4.0 Installed vector-0.11.0.0 Configuring hashtables-1.2.1.0... Building hashtables-1.2.1.0... Installed hashtables-1.2.1.0 Configuring gtk2hs-buildtools-0.13.2.1... Building gtk2hs-buildtools-0.13.2.1... Installed gtk2hs-buildtools-0.13.2.1 Configuring cairo-0.13.3.1... Configuring glib-0.13.4.1... Building glib-0.13.4.1... Building cairo-0.13.3.1... Installed cairo-0.13.3.1 Installed glib-0.13.4.1 Configuring gio-0.13.3.1... Configuring pango-0.13.3.1... Building gio-0.13.3.1... Building pango-0.13.3.1... Installed pango-0.13.3.1 Installed gio-0.13.3.1 Configuring gtk-0.14.6... Building gtk-0.14.6... Installed gtk-0.14.6 Configuring glade-0.13.1... Building glade-0.13.1... Installed glade-0.13.1 Configuring minesweeper-0.4... Building minesweeper-0.4... Failed to install minesweeper-0.4 Build log ( /home/builder/.cabal/logs/minesweeper-0.4.log ): cabal: Entering directory '/tmp/cabal-tmp-13056/minesweeper-0.4' Configuring minesweeper-0.4... Building minesweeper-0.4... Preprocessing executable 'minesweeper' for minesweeper-0.4... [ 1 of 11] Compiling Timer ( Timer.hs, dist/build/minesweeper/minesweeper-tmp/Timer.o ) Timer.hs:13:1: warning: [-Wunused-imports] The import of ‘Control.Concurrent.MVar’ is redundant except perhaps to import instances from ‘Control.Concurrent.MVar’ To import instances alone, use: import Control.Concurrent.MVar() Timer.hs:56:5: warning: [-Wunused-matches] Defined but not used: ‘a’ [ 2 of 11] Compiling Place ( Place.hs, dist/build/minesweeper/minesweeper-tmp/Place.o ) [ 3 of 11] Compiling PlaceMap ( PlaceMap.hs, dist/build/minesweeper/minesweeper-tmp/PlaceMap.o ) [ 4 of 11] Compiling PlaceSet ( PlaceSet.hs, dist/build/minesweeper/minesweeper-tmp/PlaceSet.o ) [ 5 of 11] Compiling Paths_minesweeper ( dist/build/autogen/Paths_minesweeper.hs, dist/build/minesweeper/minesweeper-tmp/Paths_minesweeper.o ) [ 6 of 11] Compiling Delay ( Delay.hs, dist/build/minesweeper/minesweeper-tmp/Delay.o ) Delay.hs:9:1: warning: [-Wunused-imports] The import of ‘Control.Concurrent.MVar’ is redundant except perhaps to import instances from ‘Control.Concurrent.MVar’ To import instances alone, use: import Control.Concurrent.MVar() Delay.hs:20:5: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘Maybe ThreadId’ Suppress this warning by saying ‘_ <- swapMVar v (GHC.Base.Nothing)’ Delay.hs:32:5: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘Maybe ThreadId’ Suppress this warning by saying ‘_ <- swapMVar v (GHC.Base.Just tid)’ [ 7 of 11] Compiling Core ( Core.hs, dist/build/minesweeper/minesweeper-tmp/Core.o ) Core.hs:16:1: warning: [-Wunused-imports] The import of ‘Data.Maybe’ is redundant except perhaps to import instances from ‘Data.Maybe’ To import instances alone, use: import Data.Maybe() Core.hs:159:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: dependentConstraints_ :: Constraint -> Constraints -> (Constraint, [Constraint]) Core.hs:162:1: warning: [-Wunused-top-binds] Defined but not used: ‘solvable’ Core.hs:175:1: warning: [-Wunused-top-binds] Defined but not used: ‘omittable’ Core.hs:175:11: warning: [-Wunused-matches] Defined but not used: ‘c’ Core.hs:186:1: warning: [-Wunused-top-binds] Defined but not used: ‘addConstraintSmart’ [ 8 of 11] Compiling Game ( Game.hs, dist/build/minesweeper/minesweeper-tmp/Game.o ) Game.hs:119:25: error: Ambiguous occurrence ‘foldr’ It could refer to either ‘List.foldr’, imported from ‘Data.List’ at Game.hs:28:1-40 (and originally defined in ‘Data.Foldable’) or ‘Map.foldr’, imported from ‘Data.Map’ at Game.hs:30:1-45 (and originally defined in ‘containers-0.5.7.1:Data.Map.Base’) cabal: Leaving directory '/tmp/cabal-tmp-13056/minesweeper-0.4' cabal: Error: some packages failed to install: minesweeper-0.4 failed during the building phase. The exception was: ExitFailure 1