@@ -48,19 +48,15 @@ using (G : Vect Ty n)
4848 (==) : Expr G TyInt -> Expr G TyInt -> Expr G TyBool
4949 (==) = Op (==)
5050
51− -- Some dummy instances for Num overloading
52− instance Eq (Expr G TyInt) where
53− (==) x y = False
54−
55− instance Ord (Expr G TyInt) where
56− compare x y = EQ
51+ (<) : Expr G TyInt -> Expr G TyInt -> Expr G TyBool
52+ (<) = Op (<)
5753
5854 instance Num (Expr G TyInt) where
5955 (+) x y = Op (+) x y
6056 (-) x y = Op (-) x y
6157 (*) x y = Op (*) x y
6258
63− abs x = If (Op (<) x (Val 0)) (Op (-) 0 x) x
59+ abs x = IF (x < 0) THEN (-x) ELSE x
6460
6561 fromInteger = Val . fromInteger
6662