@@ -190,39 +190,44 @@ instance DecEq a => DecEq (Vect n a) where
190--------------------------------------------------------------------------------
190--------------------------------------------------------------------------------
192instance DecEq Int where
192instance DecEq Int where
193− decEq x y = if x == y then Yes (really_believe_me {a = x=x} {b = x=y} refl)
193+ decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
194− else No (really_believe_me _|_)
194+ where postulate primitiveEq : x = y
195+ postulate primitiveNotEq : x = y -> _|_
196--------------------------------------------------------------------------------
197--------------------------------------------------------------------------------
198--------------------------------------------------------------------------------
199--------------------------------------------------------------------------------
200instance DecEq Char where
201instance DecEq Char where
201− decEq x y = if x == y then Yes (really_believe_me {a = x=x} {b = x=y} refl)
202+ decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
202− else No (really_believe_me _|_)
203+ where postulate primitiveEq : x = y
204+ postulate primitiveNotEq : x = y -> _|_
204--------------------------------------------------------------------------------
206--------------------------------------------------------------------------------
205-- Integer
207-- Integer
206--------------------------------------------------------------------------------
208--------------------------------------------------------------------------------
208instance DecEq Integer where
210instance DecEq Integer where
209− decEq x y = if x == y then Yes (really_believe_me {a = x=x} {b = x=y} refl)
211+ decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
210− else No (really_believe_me _|_)
212+ where postulate primitiveEq : x = y
213+ postulate primitiveNotEq : x = y -> _|_
212--------------------------------------------------------------------------------
215--------------------------------------------------------------------------------
214--------------------------------------------------------------------------------
217--------------------------------------------------------------------------------
216instance DecEq Float where
219instance DecEq Float where
217− decEq x y = if x == y then Yes (really_believe_me {a = x=x} {b = x=y} refl)
220+ decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
218− else No (really_believe_me _|_)
221+ where postulate primitiveEq : x = y
222+ postulate primitiveNotEq : x = y -> _|_
220--------------------------------------------------------------------------------
224--------------------------------------------------------------------------------
222--------------------------------------------------------------------------------
226--------------------------------------------------------------------------------
224instance DecEq String where
228instance DecEq String where
225− decEq x y = if x == y then Yes (really_believe_me {a = x=x} {b = x=y} refl)
229+ decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
226− else No (really_believe_me _|_)
230+ where postulate primitiveEq : x = y
231+ postulate primitiveNotEq : x = y -> _|_