git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix ordArray instance
commit77773c6d6951920a4c0b860b98f982f36f694f8d authorPhil Freeman <paf31@cantab.net> dateSat 3 May 2014, 22:03 (12 years ago) parent2d68e03
1 file changed+3
prelude/prelude.purs+3
prelude/prelude.purs+3
@@ -311,6 +311,9 @@ module Prelude
311311 compare = unsafeCompare
312312
313313 instance ordArray :: (Ord a) => Ord [a] where
314+ compare [] [] = EQ
315+ compare [] _ = LT
316+ compare _ [] = GT
314317 compare (x:xs) (y:ys) = case compare x y of
315318 EQ -> compare xs ys
316319 other -> other