Resolving dependencies... Downloading 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.Assembly ( Swf/Assembly.hs, dist/build/Swf/Assembly.o ) [2 of 5] Compiling Swf.Bin ( Swf/Bin.hs, dist/build/Swf/Bin.o ) Swf/Bin.hs:63:69: 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:11-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: 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:11-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 Failed to install swf-1.0 cabal: Error: some packages failed to install: swf-1.0 failed during the building phase. The exception was: ExitFailure 1