Resolving dependencies... Downloading SDL-0.5.4... [1 of 1] Compiling Main ( /tmp/SDL-0.5.4-3398/SDL-0.5.4/dist/setup/setup.hs, /tmp/SDL-0.5.4-3398/SDL-0.5.4/dist/setup/Main.o ) /tmp/SDL-0.5.4-3398/SDL-0.5.4/dist/setup/setup.hs:5:31: Warning: In the use of ‘defaultUserHooks’ (imported from Distribution.Simple): Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2 compatibility in which case you must stick with defaultUserHooks" Linking /tmp/SDL-0.5.4-3398/SDL-0.5.4/dist/setup/setup ... Warning: defaultUserHooks in Setup script is deprecated. Configuring SDL-0.5.4... checking for sdl-config... /usr/bin/sdl-config configure: creating ./config.status config.status: creating config.mk config.status: creating SDL.buildinfo config.status: creating includes/HsSDLConfig.h Building SDL-0.5.4... Preprocessing library SDL-0.5.4... on the commandline: Warning: -fglasgow-exts is deprecated: Use individual extensions instead [ 1 of 16] Compiling Graphics.UI.SDL.Utilities ( Graphics/UI/SDL/Utilities.hs, dist/build/Graphics/UI/SDL/Utilities.o ) Graphics/UI/SDL/Utilities.hs:33:25: Could not deduce (Num b) arising from the literal ‘0’ from the context (Enum a b, Bits b) bound by the type signature for toBitmask :: (Enum a b, Bits b) => [a] -> b at Graphics/UI/SDL/Utilities.hs:32:14-42 Possible fix: add (Num b) to the context of the type signature for toBitmask :: (Enum a b, Bits b) => [a] -> b In the second argument of ‘foldr’, namely ‘0’ In the first argument of ‘(.)’, namely ‘foldr (.|.) 0’ In the expression: foldr (.|.) 0 . map fromEnum Graphics/UI/SDL/Utilities.hs:39:45: Could not deduce (Num b) arising from the literal ‘0’ from the context (Bounded a, Enum a b, Bits b) bound by the type signature for fromBitmask :: (Bounded a, Enum a b, Bits b) => b -> [a] at Graphics/UI/SDL/Utilities.hs:35:16-54 or from (Enum a1 b) bound by the inferred type of worker :: Enum a1 b => a1 -> [a1] -> [a1] at Graphics/UI/SDL/Utilities.hs:(38,11)-(41,26) Possible fix: add (Num b) to the context of the inferred type of worker :: Enum a1 b => a1 -> [a1] -> [a1] or the type signature for fromBitmask :: (Bounded a, Enum a b, Bits b) => b -> [a] In the second argument of ‘(/=)’, namely ‘0’ In the expression: (mask .&. fromEnum v) /= 0 In the expression: if (mask .&. fromEnum v) /= 0 then (:) v else id Failed to install SDL-0.5.4 cabal: Error: some packages failed to install: SDL-0.5.4 failed during the building phase. The exception was: ExitFailure 1 SDL-mixer-0.6.1 depends on SDL-0.5.4 which failed to install. SDL-ttf-0.6.2 depends on SDL-0.5.4 which failed to install. fallingblocks-0.1.4 depends on SDL-0.5.4 which failed to install.