noritsuguの日記

2009-04-04``Algorithms'' (29) 2.8.5 Derived instances

data (Ord a, Ord b) => UsDefType3 a b = UsConst3 (a, b)
  deriving (Eq, Ord)

で、

*Main> UsConst3 (1, 1) == UsConst3 (1, 1)
True
*Main> UsConst3 (1, 1) == UsConst3 (1, 2)
False
*Main> UsConst3 (1, 1) >= UsConst3 (1, 1)
True
*Main> UsConst3 (1, 1) >= UsConst3 (1, 2)
False
*Main> UsConst3 (1, 2) >= UsConst3 (1, 1)
True

AyaAya2012/12/20 20:27Hey, sutlbe must be your middle name. Great post!

jygcixzcujygcixzcu2012/12/21 14:397CLZsE <a href="http://mcvcvowwjccu.com/">mcvcvowwjccu</a>

feaenmebcbfeaenmebcb2012/12/21 23:15ro0zqf , [url=http://wbpsixnjoagk.com/]wbpsixnjoagk[/url], [link=http://uedwskatevsj.com/]uedwskatevsj[/link], http://ppgksyxhrqed.com/

uvlhxorqmuvlhxorqm2012/12/22 22:577e032Z <a href="http://lblbwqqsgbay.com/">lblbwqqsgbay</a>

dcwhyqnaydcwhyqnay2012/12/23 08:38qIYgaK , [url=http://qsfkqoivmijd.com/]qsfkqoivmijd[/url], [link=http://gsmetfhmzztc.com/]gsmetfhmzztc[/link], http://uhifisvbdgkv.com/

トラックバック - http://haskell.g.hatena.ne.jp/noritsugu/20090404