Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Installed mtl-2.2.1 Downloading swf-1.0... Configuring swf-1.0... Building swf-1.0... Failed to install swf-1.0 Build log ( /home/builder/.cabal/logs/swf-1.0.log ): cabal: Entering directory '/tmp/cabal-tmp-1256/swf-1.0' Configuring swf-1.0... Building swf-1.0... Preprocessing library swf-1.0... Swf/Bin.hs:1:12: warning: -fglasgow-exts is deprecated: Use individual extensions instead [1 of 5] Compiling Swf.Bin ( Swf/Bin.hs, dist/build/Swf/Bin.o ) Swf/Bin.hs:63:69: error: • Could not deduce (Num a) arising from the literal ‘0’ from the context: (Ord a, Bits a) bound by the type signature for: nuBits :: (Ord a, Bits a) => a -> Word8 at Swf/Bin.hs:62:1-39 Possible fix: add (Num a) to the context of the type signature for: nuBits :: (Ord a, Bits a) => a -> Word8 • In the second argument of ‘(>)’, namely ‘0’ In the expression: n `shiftR` y > 0 In a stmt of a list comprehension: n `shiftR` y > 0 Swf/Bin.hs:67:12: error: • Could not deduce (Num a) arising from the literal ‘0’ from the context: (Ord a, Bits a) bound by the type signature for: nsBits :: (Ord a, Bits a) => a -> Word8 at Swf/Bin.hs:65:1-39 Possible fix: add (Num a) to the context of the type signature for: nsBits :: (Ord a, Bits a) => a -> Word8 • In the second argument of ‘(>)’, namely ‘0’ In the expression: n > 0 In a stmt of a pattern guard for an equation for ‘nsBits’: n > 0 cabal: Leaving directory '/tmp/cabal-tmp-1256/swf-1.0' cabal: Error: some packages failed to install: swf-1.0 failed during the building phase. The exception was: ExitFailure 1