Skip to content

Commit 06c7ebc

Browse files
committed
Fix tests, remove overlapping instance for Eq []
1 parent 2f36148 commit 06c7ebc

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/Data/Array.purs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,6 @@ foreign import sortJS
232232
instance showArray :: (Show a) => Show [a] where
233233
show xs = "[" ++ joinWith (map show xs) "," ++ "]"
234234

235-
instance eqArray :: (Eq a) => Eq [a] where
236-
(==) [] [] = true
237-
(==) (x:xs) (y:ys) = x == y && xs == ys
238-
(==) _ _ = false
239-
(/=) xs ys = not (xs == ys)
240-
241235
instance monadArray :: Monad [] where
242236
return = singleton
243237
(>>=) = flip concatMap

tests/Simple.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ main = do
4141
assertEq (length nil) 0
4242

4343
assertEq (indexOf [1, 2, 1] 1) 0
44-
assertEq (indexOf [1, 2, 1] 4) -1
44+
assertEq (indexOf [1, 2, 1] 4) (-1)
4545

4646
assertEq (lastIndexOf [1, 2, 1] 1) 2
47-
assertEq (lastIndexOf [1, 2, 1] 4) -1
47+
assertEq (lastIndexOf [1, 2, 1] 4) (-1)
4848

4949
assertEq (concat [1, 2] [3, 4]) [1, 2, 3, 4]
5050
assertEq (concat [1] nil) [1]

0 commit comments

Comments
 (0)