git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #402 from purescript/ord-array-fix

Fix ordArray instance

commit18d0a281bff32102ca8f4210c18b4728c28e70ef authorPhil Freeman <paf31@cantab.net> dateSun 4 May 2014, 22:24 (12 years ago) parent2d68e0377773c6
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