Resolving dependencies... Configuring resource-embed-0.1.0.0... Building resource-embed-0.1.0.0... Preprocessing executable 'resource-embed' for resource-embed-0.1.0.0... [1 of 1] Compiling Main ( src/Main.hs, dist/build/resource-embed/resource-embed-tmp/Main.o ) src/Main.hs:107:19: Could not deduce (Num a) arising from the literal ‘15’ from the context (Bits a) bound by the type signature for highNibble :: Bits a => a -> a at src/Main.hs:106:15-32 Possible fix: add (Num a) to the context of the type signature for highNibble :: Bits a => a -> a In the second argument of ‘(.&.)’, namely ‘15’ In the first argument of ‘(.)’, namely ‘(.&. 15)’ In the expression: (.&. 15) . (flip shiftR 4) src/Main.hs:110:18: Could not deduce (Num a) arising from the literal ‘15’ from the context (Bits a) bound by the type signature for lowNibble :: Bits a => a -> a at src/Main.hs:109:14-31 Possible fix: add (Num a) to the context of the type signature for lowNibble :: Bits a => a -> a In the second argument of ‘(.&.)’, namely ‘15’ In the expression: (.&. 15) In an equation for ‘lowNibble’: lowNibble = (.&. 15) Failed to install resource-embed-0.1.0.0 cabal: Error: some packages failed to install: resource-embed-0.1.0.0 failed during the building phase. The exception was: ExitFailure 1