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 text-1.2.2.1... Installed half-0.2.2.3 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed stm-2.4.4.1 Building transformers-compat-0.5.1.4... Configuring StateVar-1.1.0.4... Installed transformers-compat-0.5.1.4 Building StateVar-1.1.0.4... Configuring transformers-base-0.4.4... Installed StateVar-1.1.0.4 Building transformers-base-0.4.4... Installed transformers-base-0.4.4 Configuring elerea-2.9.0... Building elerea-2.9.0... Installed elerea-2.9.0 Installed text-1.2.2.1 Configuring OpenGLRaw-3.2.4.0... Building OpenGLRaw-3.2.4.0... Installed OpenGLRaw-3.2.4.0 Configuring GLURaw-2.0.0.3... Building GLURaw-2.0.0.3... Installed GLURaw-2.0.0.3 Configuring OpenGL-3.0.1.0... Building OpenGL-3.0.1.0... Installed OpenGL-3.0.1.0 Configuring GLFW-0.5.2.5... Building GLFW-0.5.2.5... Installed GLFW-0.5.2.5 Configuring elerea-examples-2.2.1... Building elerea-examples-2.2.1... Failed to install elerea-examples-2.2.1 Build log ( /home/builder/.cabal/logs/elerea-examples-2.2.1.log ): cabal: Entering directory '/tmp/cabal-tmp-4986/elerea-examples-2.2.1' Configuring elerea-examples-2.2.1... Building elerea-examples-2.2.1... Preprocessing executable 'elerea-bounce' for elerea-examples-2.2.1... [1 of 5] Compiling Vector ( src/Bounce/Vector.hs, dist/build/elerea-bounce/elerea-bounce-tmp/Vector.o ) [2 of 5] Compiling Util ( src/Bounce/Util.hs, dist/build/elerea-bounce/elerea-bounce-tmp/Util.o ) [3 of 5] Compiling Math ( src/Bounce/Math.hs, dist/build/elerea-bounce/elerea-bounce-tmp/Math.o ) src/Bounce/Math.hs:53:10: error: • Could not deduce (Eq a) arising from a use of ‘scanM’ from the context: Fractional a bound by the type signature for: movingAvg :: Fractional a => a -> Signal a -> SignalGen p (Signal a) at src/Bounce/Math.hs:51:1-70 Possible fix: add (Eq a) to the context of the type signature for: movingAvg :: Fractional a => a -> Signal a -> SignalGen p (Signal a) • In a stmt of a 'do' block: sig <- scanM n (delay 0) s In the expression: do { sig <- scanM n (delay 0) s; return $ ((/ n) . sum) <$> sequence sig } In an equation for ‘movingAvg’: movingAvg n s = do { sig <- scanM n (delay 0) s; return $ ((/ n) . sum) <$> sequence sig } src/Bounce/Math.hs:59:10: error: • Could not deduce (Eq c) arising from a use of ‘scanM’ from the context: (Vector2D v c, Num c) bound by the type signature for: movingAvgV :: (Vector2D v c, Num c) => c -> Signal v -> SignalGen p (Signal v) at src/Bounce/Math.hs:57:1-78 Possible fix: add (Eq c) to the context of the type signature for: movingAvgV :: (Vector2D v c, Num c) => c -> Signal v -> SignalGen p (Signal v) • In a stmt of a 'do' block: sig <- scanM n (delay vnull) s In the expression: do { sig <- scanM n (delay vnull) s; return $ ((^/. n) . foldl1' (^+^)) <$> sequence sig } In an equation for ‘movingAvgV’: movingAvgV n s = do { sig <- scanM n (delay vnull) s; return $ ((^/. n) . foldl1' (^+^)) <$> sequence sig } cabal: Leaving directory '/tmp/cabal-tmp-4986/elerea-examples-2.2.1' cabal: Error: some packages failed to install: elerea-examples-2.2.1 failed during the building phase. The exception was: ExitFailure 1