[ create a new paste ] login | about

Link: http://codepad.org/PTFjum4O    [ raw code | output | fork ]

Haskell, pasted on Mar 21:
1
2
3
4
5
6
7
8
import Prelude hiding ( (^) )

(^) :: a -> b -> c
(^) '\n' True = "no"
-- ... others

main = do
  print $ 0 ^ "foo"


Output:
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]


Create a new paste based on this one


Comments: