Resolving dependencies... Configuring old-locale-1.0.0.7... Configuring mtl-2.2.1... Building old-locale-1.0.0.7... Building mtl-2.2.1... Installed old-locale-1.0.0.7 Configuring primitive-0.6.1.0... Building primitive-0.6.1.0... Configuring random-1.1... Installed mtl-2.2.1 Building random-1.1... Configuring syb-0.6... Installed primitive-0.6.1.0 Building syb-0.6... Configuring utf8-string-1.0.1.1... Installed random-1.1 Building utf8-string-1.0.1.1... Configuring old-time-1.1.0.3... Installed syb-0.6 Building old-time-1.1.0.3... Configuring text-1.2.2.1... Installed utf8-string-1.0.1.1 Building text-1.2.2.1... Installed old-time-1.1.0.3 Configuring vector-0.11.0.0... Building vector-0.11.0.0... Installed text-1.2.2.1 Configuring polyparse-1.12... Building polyparse-1.12... Configuring hashable-1.2.4.0... Installed polyparse-1.12 Building hashable-1.2.4.0... Configuring cpphs-1.20.2... Installed hashable-1.2.4.0 Installed vector-0.11.0.0 Configuring unordered-containers-0.2.7.2... Building cpphs-1.20.2... Building unordered-containers-0.2.7.2... Configuring hashtables-1.2.1.0... Installed unordered-containers-0.2.7.2 Configuring uniplate-1.6.12... Installed cpphs-1.20.2 Building hashtables-1.2.1.0... Building uniplate-1.6.12... Installed hashtables-1.2.1.0 Configuring haskell-src-exts-1.17.1... Configuring gtk2hs-buildtools-0.13.2.1... Installed uniplate-1.6.12 Building haskell-src-exts-1.17.1... Building gtk2hs-buildtools-0.13.2.1... Installed gtk2hs-buildtools-0.13.2.1 Configuring cairo-0.13.3.1... Building cairo-0.13.3.1... Configuring glib-0.13.4.1... Installed cairo-0.13.3.1 Building glib-0.13.4.1... Installed glib-0.13.4.1 Configuring gio-0.13.3.1... Building gio-0.13.3.1... Configuring pango-0.13.3.1... Installed haskell-src-exts-1.17.1 Building pango-0.13.3.1... Configuring derive-2.5.26... Installed pango-0.13.3.1 Building derive-2.5.26... Installed gio-0.13.3.1 Configuring gtk-0.14.6... Building gtk-0.14.6... Installed derive-2.5.26 Installed gtk-0.14.6 Configuring glade-0.13.1... Building glade-0.13.1... Installed glade-0.13.1 Downloading minesweeper-0.8.8.5... Configuring minesweeper-0.8.8.5... Building minesweeper-0.8.8.5... Failed to install minesweeper-0.8.8.5 Build log ( /home/builder/.cabal/logs/minesweeper-0.8.8.5.log ): cabal: Entering directory '/tmp/cabal-tmp-6519/minesweeper-0.8.8.5' Configuring minesweeper-0.8.8.5... Building minesweeper-0.8.8.5... Preprocessing executable 'minesweeper' for minesweeper-0.8.8.5... [ 1 of 28] Compiling When ( When.hs, dist/build/minesweeper/minesweeper-tmp/When.o ) [ 2 of 28] Compiling System.Random.Instances ( System/Random/Instances.hs, dist/build/minesweeper/minesweeper-tmp/System/Random/Instances.o ) System/Random/Instances.hs:9:1: warning: [-Worphans] Orphan instance: instance Eq StdGen To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. System/Random/Instances.hs:12:1: warning: [-Worphans] Orphan instance: instance Ord StdGen To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. System/Random/Instances.hs:12:10: warning: [-Wmissing-methods] • No explicit implementation for either ‘compare’ or ‘<=’ • In the instance declaration for ‘Ord StdGen’ System/Random/Instances.hs:15:1: warning: [-Worphans] Orphan instance: instance Binary StdGen To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. [ 3 of 28] Compiling Paths_minesweeper ( dist/build/autogen/Paths_minesweeper.hs, dist/build/minesweeper/minesweeper-tmp/Paths_minesweeper.o ) [ 4 of 28] Compiling Log ( Log.hs, dist/build/minesweeper/minesweeper-tmp/Log.o ) Log.hs:33:9: warning: [-Wunused-matches] Defined but not used: ‘time’ Log.hs:38:5: warning: [-Wunused-matches] Defined but not used: ‘time’ [ 5 of 28] Compiling Driver ( Driver.hs, dist/build/minesweeper/minesweeper-tmp/Driver.o ) Driver.hs:12: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() [ 6 of 28] Compiling Driver.Log ( Driver/Log.hs, dist/build/minesweeper/minesweeper-tmp/Driver/Log.o ) [ 7 of 28] Compiling Transition ( Transition.hs, dist/build/minesweeper/minesweeper-tmp/Transition.o ) Transition.hs:55:5: warning: [-Wunused-local-binds] Defined but not used: ‘initReactions’ [ 8 of 28] Compiling Data.PContainer ( Data/PContainer.lhs, dist/build/minesweeper/minesweeper-tmp/Data/PContainer.o ) Data/PContainer.lhs:24:3: warning: [-Wunused-imports] The import of ‘Data.Derive.Binary’ is redundant except perhaps to import instances from ‘Data.Derive.Binary’ To import instances alone, use: import Data.Derive.Binary() Data/PContainer.lhs:25:3: warning: [-Wunused-imports] The import of ‘Data.Derive.Functor’ is redundant except perhaps to import instances from ‘Data.Derive.Functor’ To import instances alone, use: import Data.Derive.Functor() Data/PContainer.lhs:122:12: warning: [-Wmissing-methods] • No explicit implementation for either ‘showsPrec’ or ‘show’ • In the instance declaration for ‘Show (Tr b x)’ Data/PContainer.lhs:192:12: warning: [-Wmissing-methods] • No explicit implementation for either ‘showsPrec’ or ‘show’ • In the instance declaration for ‘Show (Index a)’ [ 9 of 28] Compiling Data.ChangeSet ( Data/ChangeSet.hs, dist/build/minesweeper/minesweeper-tmp/Data/ChangeSet.o ) [10 of 28] Compiling Data.ChangeMap ( Data/ChangeMap.hs, dist/build/minesweeper/minesweeper-tmp/Data/ChangeMap.o ) [11 of 28] Compiling Core.Square ( Core/Square.hs, dist/build/minesweeper/minesweeper-tmp/Core/Square.o ) Core/Square.hs:22:1: warning: [-Wunused-imports] The import of ‘Control.Monad’ is redundant except perhaps to import instances from ‘Control.Monad’ To import instances alone, use: import Control.Monad() Core/Square.hs:25:1: warning: [-Wunused-imports] The import of ‘Data.Derive.Binary’ is redundant except perhaps to import instances from ‘Data.Derive.Binary’ To import instances alone, use: import Data.Derive.Binary() [12 of 28] Compiling Core.BitField ( Core/BitField.lhs, dist/build/minesweeper/minesweeper-tmp/Core/BitField.o ) Core/BitField.lhs:23:3: warning: [-Wunused-imports] The import of ‘Control.Monad’ is redundant except perhaps to import instances from ‘Control.Monad’ To import instances alone, use: import Control.Monad() Core/BitField.lhs:26:3: warning: [-Wunused-imports] The import of ‘Data.Derive.Binary’ is redundant except perhaps to import instances from ‘Data.Derive.Binary’ To import instances alone, use: import Data.Derive.Binary() Core/BitField.lhs:27:3: warning: [-Wunused-imports] The import of ‘Data.Derive.Functor’ is redundant except perhaps to import instances from ‘Data.Derive.Functor’ To import instances alone, use: import Data.Derive.Functor() Core/BitField.lhs:31:3: warning: [-Wunused-imports] The import of ‘Data.Monoid’ is redundant except perhaps to import instances from ‘Data.Monoid’ To import instances alone, use: import Data.Monoid() Core/BitField.lhs:33:3: 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/BitField.lhs:454:6: warning: [-Worphans] Orphan instance: instance Binary b_1627426611 => Binary (Tr b_1627426611 x_1627426612) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. [13 of 28] Compiling Core.Constraints ( Core/Constraints.lhs, dist/build/minesweeper/minesweeper-tmp/Core/Constraints.o ) [14 of 28] Compiling Configuration ( Configuration.hs, dist/build/minesweeper/minesweeper-tmp/Configuration.o ) Configuration.hs:23:1: warning: [-Wunused-imports] The import of ‘Control.Monad’ is redundant except perhaps to import instances from ‘Control.Monad’ To import instances alone, use: import Control.Monad() Configuration.hs:26:1: warning: [-Wunused-imports] The import of ‘Data.Derive.Binary’ is redundant except perhaps to import instances from ‘Data.Derive.Binary’ To import instances alone, use: import Data.Derive.Binary() [15 of 28] Compiling GTK.Preferences ( GTK/Preferences.hs, dist/build/minesweeper/minesweeper-tmp/GTK/Preferences.o ) GTK/Preferences.hs:11:1: warning: [-Wdodgy-imports] Module ‘Graphics.UI.Gtk’ does not export ‘Clear’ GTK/Preferences.hs:95:5: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘ConnectId ComboBox’ Suppress this warning by saying ‘_ <- ($) on predefsize changed setSensS’ GTK/Preferences.hs:96:5: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘ConnectId ComboBox’ Suppress this warning by saying ‘_ <- ($) on gamestyle changed setSensG’ GTK/Preferences.hs:97:5: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘ConnectId SpinButton’ Suppress this warning by saying ‘_ <- onValueSpinned sizex setRange’ GTK/Preferences.hs:98:5: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘ConnectId SpinButton’ Suppress this warning by saying ‘_ <- onValueSpinned sizey setRange’ GTK/Preferences.hs:128:50: warning: [-Wmissing-fields] • Fields of ‘Configuration’ not initialised: numOfSolutions_ • In the second argument of ‘($)’, namely ‘Configuration {size = board (round x) (round y), mines = round m, strategy = toEnum s, deathProbRange = (realToFrac dl, realToFrac dh), allowedDeaths = round l - 1, recursiveReveal = rr, undoAllowed = ua, hintAllowed = if ha == 0 then Nothing else Just (toEnum $ ha - 1)}’ In the second argument of ‘($)’, namely ‘configuration' $ Configuration {size = board (round x) (round y), mines = round m, strategy = toEnum s, deathProbRange = (realToFrac dl, realToFrac dh), allowedDeaths = round l - 1, recursiveReveal = rr, undoAllowed = ua, hintAllowed = if ha == 0 then Nothing else Just (toEnum $ ha - 1)}’ In the second argument of ‘($)’, namely ‘Just $ configuration' $ Configuration {size = board (round x) (round y), mines = round m, strategy = toEnum s, deathProbRange = (realToFrac dl, realToFrac dh), allowedDeaths = round l - 1, recursiveReveal = rr, undoAllowed = ua, hintAllowed = if ha == 0 then Nothing else Just (toEnum $ ha - 1)}’ [16 of 28] Compiling Step ( Step.hs, dist/build/minesweeper/minesweeper-tmp/Step.o ) [17 of 28] Compiling State ( State.hs, dist/build/minesweeper/minesweeper-tmp/State.o ) State.hs:10:1: warning: [-Wunused-imports] The import of ‘Control.Monad’ is redundant except perhaps to import instances from ‘Control.Monad’ To import instances alone, use: import Control.Monad() State.hs:13:1: warning: [-Wunused-imports] The import of ‘Data.Derive.Binary’ is redundant except perhaps to import instances from ‘Data.Derive.Binary’ To import instances alone, use: import Data.Derive.Binary() State.hs:15:1: warning: [-Wunused-imports] The import of ‘System.Random.Instances’ is redundant except perhaps to import instances from ‘System.Random.Instances’ To import instances alone, use: import System.Random.Instances() [18 of 28] Compiling Event ( Event.hs, dist/build/minesweeper/minesweeper-tmp/Event.o ) [19 of 28] Compiling GTK.Square ( GTK/Square.hs, dist/build/minesweeper/minesweeper-tmp/GTK/Square.o ) [20 of 28] Compiling State.Functions ( State/Functions.hs, dist/build/minesweeper/minesweeper-tmp/State/Functions.o ) State/Functions.hs:65:26: warning: [-Wmissing-fields] • Fields of ‘Configuration’ not initialised: numOfSolutions_ • In the second argument of ‘($)’, namely ‘Configuration {size = board 10 10, mines = 20, strategy = Random, deathProbRange = (1, 1), allowedDeaths = 0, recursiveReveal = True, undoAllowed = False, hintAllowed = Nothing}’ In the expression: configuration' $ Configuration {size = board 10 10, mines = 20, strategy = Random, deathProbRange = (1, 1), allowedDeaths = 0, recursiveReveal = True, undoAllowed = False, hintAllowed = Nothing} In an equation for ‘c’: c = configuration' $ Configuration {size = board 10 10, mines = 20, strategy = Random, deathProbRange = (1, 1), allowedDeaths = 0, recursiveReveal = True, undoAllowed = False, hintAllowed = Nothing} [21 of 28] Compiling GTK.Score ( GTK/Score.hs, dist/build/minesweeper/minesweeper-tmp/GTK/Score.o ) GTK/Score.hs:47:38: error: • Ambiguous type variable ‘string0’ arising from a use of ‘labelNew’ prevents the constraint ‘(glib-0.13.4.1:System.Glib.UTFString.GlibString string0)’ from being solved. Probable fix: use a type annotation to specify what ‘string0’ should be. These potential instances exist: instance glib-0.13.4.1:System.Glib.UTFString.GlibString [Char] -- Defined in ‘glib-0.13.4.1:System.Glib.UTFString’ ...plus one instance involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘replicateM’, namely ‘(labelNew Nothing)’ In a stmt of a 'do' block: labs@(l : ls) <- replicateM 4 (labelNew Nothing) In the second argument of ‘($)’, namely ‘do { labs@(l : ls) <- replicateM 4 (labelNew Nothing); set l [miscXalign := 0]; sequence_ [set x [miscXalign := 1] | x <- ls]; mapM_ widgetShow labs; .... }’ cabal: Leaving directory '/tmp/cabal-tmp-6519/minesweeper-0.8.8.5' cabal: Error: some packages failed to install: minesweeper-0.8.8.5 failed during the building phase. The exception was: ExitFailure 1