blob: 7942a87433e8036fb600327a13d24793b1bd57fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
module Test where
instance {-# OVERLAPPABLE #-} Show a => Eq a where
x == y = length (show x) == length (show y)
f :: Show a => a -> a -> Bool
f x y = x == y
p = f (3 :: Int) 4
|