summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/drvfail012.hs
blob: 4a073bbed10bd3bc40b9715ee58bcb025ec974e7 (plain)
1
2
3
4
5
6
7
8
-- Trac #1608

module ShouldFail where

newtype Ego a = Ego a deriving (Ord)

f :: Ord a => Ego a -> Ego a -> Bool
f e1 e2 = e1 < e2