Resolving dependencies... Configuring ObjectName-1.1.0.1... Configuring fixed-0.2.1.1... Building ObjectName-1.1.0.1... Building fixed-0.2.1.1... Installed ObjectName-1.1.0.1 Configuring half-0.2.2.3... Configuring stm-2.4.4.1... Installed fixed-0.2.1.1 Building half-0.2.2.3... Building stm-2.4.4.1... Configuring safe-0.3.9... Installed half-0.2.2.3 Building safe-0.3.9... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Building text-1.2.2.1... Configuring StateVar-1.1.0.4... Installed safe-0.3.9 Building StateVar-1.1.0.4... Installed StateVar-1.1.0.4 Installed text-1.2.2.1 Configuring OpenGLRaw-3.2.3.0... Building OpenGLRaw-3.2.3.0... Installed OpenGLRaw-3.2.3.0 Configuring GLURaw-2.0.0.2... Building GLURaw-2.0.0.2... Installed GLURaw-2.0.0.2 Configuring OpenGL-3.0.1.0... Building OpenGL-3.0.1.0... Installed OpenGL-3.0.1.0 Configuring GLUT-2.7.0.10... Building GLUT-2.7.0.10... Installed GLUT-2.7.0.10 Configuring HGE2D-0.1.7.1... Building HGE2D-0.1.7.1... Failed to install HGE2D-0.1.7.1 Build log ( /home/builder/.cabal/logs/HGE2D-0.1.7.1.log ): cabal: Entering directory '/tmp/cabal-tmp-6555/HGE2D-0.1.7.1' Configuring HGE2D-0.1.7.1... Building HGE2D-0.1.7.1... Preprocessing library HGE2D-0.1.7.1... [ 1 of 15] Compiling HGE2D.Types ( src/HGE2D/Types.hs, dist/build/HGE2D/Types.o ) [ 2 of 15] Compiling HGE2D.Time ( src/HGE2D/Time.hs, dist/build/HGE2D/Time.o ) [ 3 of 15] Compiling HGE2D.Settings ( src/HGE2D/Settings.hs, dist/build/HGE2D/Settings.o ) [ 4 of 15] Compiling HGE2D.Math ( src/HGE2D/Math.hs, dist/build/HGE2D/Math.o ) [ 5 of 15] Compiling HGE2D.Datas ( src/HGE2D/Datas.hs, dist/build/HGE2D/Datas.o ) [ 6 of 15] Compiling HGE2D.Colors ( src/HGE2D/Colors.hs, dist/build/HGE2D/Colors.o ) [ 7 of 15] Compiling HGE2D.Classes ( src/HGE2D/Classes.hs, dist/build/HGE2D/Classes.o ) [ 8 of 15] Compiling HGE2D.Geometry ( src/HGE2D/Geometry.hs, dist/build/HGE2D/Geometry.o ) src/HGE2D/Geometry.hs:10: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() [ 9 of 15] Compiling HGE2D.GlFunctions ( src/HGE2D/GlFunctions.hs, dist/build/HGE2D/GlFunctions.o ) [10 of 15] Compiling HGE2D.Shapes ( src/HGE2D/Shapes.hs, dist/build/HGE2D/Shapes.o ) [11 of 15] Compiling HGE2D.Instances ( src/HGE2D/Instances.hs, dist/build/HGE2D/Instances.o ) [12 of 15] Compiling HGE2D.Collision ( src/HGE2D/Collision.hs, dist/build/HGE2D/Collision.o ) src/HGE2D/Collision.hs:10:1: warning: [-Wunused-imports] The import of ‘HGE2D.Types’ is redundant except perhaps to import instances from ‘HGE2D.Types’ To import instances alone, use: import HGE2D.Types() src/HGE2D/Collision.hs:14:1: warning: [-Wunused-imports] The import of ‘HGE2D.Instances’ is redundant except perhaps to import instances from ‘HGE2D.Instances’ To import instances alone, use: import HGE2D.Instances() [13 of 15] Compiling HGE2D.Physical ( src/HGE2D/Physical.hs, dist/build/HGE2D/Physical.o ) src/HGE2D/Physical.hs:13:1: warning: [-Wunused-imports] The import of ‘HGE2D.Instances’ is redundant except perhaps to import instances from ‘HGE2D.Instances’ To import instances alone, use: import HGE2D.Instances() [14 of 15] Compiling HGE2D.Render ( src/HGE2D/Render.hs, dist/build/HGE2D/Render.o ) [15 of 15] Compiling HGE2D.Engine ( src/HGE2D/Engine.hs, dist/build/HGE2D/Engine.o ) src/HGE2D/Engine.hs:185:3: error: • No instance for (NFData a) arising from a use of ‘deepseq’ Possible fix: add (NFData a) to the context of the type signature for: idle :: EngineState a -> MVar a -> IdleCallback • In a stmt of a 'do' block: deepseq newState (swapMVar mvarGs newState) In the expression: do { gs <- readMVar mvarGs; secs <- getSeconds; let ms = toMilliSeconds secs deltaMs = ms - (getTime es gs) ....; deepseq newState (swapMVar mvarGs newState); .... } In an equation for ‘idle’: idle es mvarGs = do { gs <- readMVar mvarGs; secs <- getSeconds; let ms = ... ....; .... } cabal: Leaving directory '/tmp/cabal-tmp-6555/HGE2D-0.1.7.1' cabal: Error: some packages failed to install: HGE2D-0.1.7.1 failed during the building phase. The exception was: ExitFailure 1