fork(1) download
  1. import Data.Int (Int8)
  2.  
  3. instance (Bounded a, Enum a, Eq a, Eq b) => Eq (a -> b) where
  4. f == g = all (\x -> f x == g x) [minBound..maxBound]
  5.  
  6. main = print ((==) == ((\x y -> not (x /= y)) :: Int8 -> Int8 -> Bool))
Success #stdin #stdout 0s 4648KB
stdin
Standard input is empty
stdout
True