Change the syntax of not equals.

This commit is contained in:
2011-02-03 21:30:27 -05:00
parent a64b8aa81c
commit 796210198c
2 changed files with 6 additions and 6 deletions

View File

@@ -5,17 +5,17 @@ import Data.Bool;
export eq(x :: a, y :: a) :: Bool = prim%eq(x,y);
class Eq a {
(==)(x :: a, y :: a) :: Bool = not (x /= y);
(/=)(x :: a, y :: a) :: Bool = not (x == y);
(==)(x :: a, y :: a) :: Bool = not (x != y);
(!=)(x :: a, y :: a) :: Bool = not (x == y);
}
instance Eq () {
(==)(x,y) = True;
(/=)(x,y) = False;
(!=)(x,y) = False;
}
instance Eq Bool {
(/=)(x,y) = x ^ y;
(!=)(x,y) = x ^ y;
}
class SafelyConvertable a b {