Update package to Idris2 0.5.1

This commit is contained in:
Kiana Sheibani 2022-09-09 09:17:11 -04:00
parent 1f2a870a2c
commit f72826b329
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
6 changed files with 36 additions and 42 deletions

View file

@ -14,12 +14,12 @@ Field a = (Eq a, Neg a, Fractional a)
public export
interface (Eq a, Neg a, Fractional a) => Scalar a where
interface (Eq a, Neg a, Fractional a) => FieldCmp a where
abscmp : a -> a -> Ordering
export
(Ord a, Abs a, Neg a, Fractional a) => Scalar a where
(Ord a, Abs a, Neg a, Fractional a) => FieldCmp a where
abscmp x y = compare (abs x) (abs y)