[ create a new paste ] login | about

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

Haskell, pasted on Jul 3:
1
2
3
4
5
6
7
8
9
10
11
12
instance Num Bool where
  (+) = (||)
  (*) = (&&)
  x - y = x + negate y
  negate = not
  abs    = id
  signum = id
  fromInteger 0 = False
  fromInteger _ = True

main = putStrLn 
     $ if (0 :: Bool) == 1 - 1 then "Kochi" else "Sochijanaiyo"


Output:
1
Sochijanaiyo


Create a new paste based on this one


Comments: