diff tests/eq.ur @ 256:e52243e20858

'eq' type class
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 15:15:41 -0400
parents
children 32f9212583b2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/eq.ur	Sun Aug 31 15:15:41 2008 -0400
@@ -0,0 +1,5 @@
+val b1 = 1 = 1
+val b2 = "Good" = "Bad"
+
+fun eq_pair (t1 :: Type) (t2 :: Type) (eq1 : eq t1) (eq2 : eq t2) (x : t1 * t2) (y : t1 * t2) =
+        x.1 = y.1