1 2 3 4 5 6 7 8
import Prelude hiding ( (^) ) (^) :: a -> b -> c (^) '\n' True = "no" -- ... others main = do print $ 0 ^ "foo"
1 2 3 4 5
Error occurred ERROR line 4 - Inferred type is not general enough *** Expression : (^) *** Expected type : a -> b -> c *** Inferred type : Char -> Bool -> [Char]