fork download
  1. data Foo = MkFoo
  2.  
  3. instance Eq Foo where
  4. (==) _ _ = False
  5.  
  6. instance Ord Foo where
  7. compare _ _ = LT
  8.  
  9. instance Num Foo where
  10. (+) _ _ = MkFoo
  11. (*) _ _ = MkFoo
  12. abs _ = MkFoo
  13. signum _ = MkFoo
  14. fromInteger _ = MkFoo
  15. negate _ = MkFoo
  16.  
  17. main = print $ 2 + 2 == (4 :: Foo)
Success #stdin #stdout 0s 8388607KB
stdin
Standard input is empty
stdout
False