Mercurial > urweb
comparison tests/eq.ur @ 257:32f9212583b2
Add 'ne' to 'eq' type class
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Aug 2008 15:18:00 -0400 |
parents | e52243e20858 |
children | 7abb28e9d51f |
comparison
equal
deleted
inserted
replaced
256:e52243e20858 | 257:32f9212583b2 |
---|---|
1 val b1 = 1 = 1 | 1 val b1 = 1 = 1 |
2 val b2 = "Good" = "Bad" | 2 val b2 = "Good" = "Bad" |
3 | 3 |
4 fun eq_pair (t1 :: Type) (t2 :: Type) (eq1 : eq t1) (eq2 : eq t2) (x : t1 * t2) (y : t1 * t2) = | 4 fun eq_pair (t1 :: Type) (t2 :: Type) (eq1 : eq t1) (eq2 : eq t2) (x : t1 * t2) (y : t1 * t2) = |
5 x.1 = y.1 | 5 x.1 = y.1 |
6 | |
7 val b3 = True <> False |