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"
1
Sochijanaiyo