Skip to content

Commit 08e128d

Browse files
authored
Future-proof Eq instances (#424)
1 parent 35d3a20 commit 08e128d

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

vector/src/Data/Vector.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ instance Eq a => Eq (Vector a) where
293293
{-# INLINE (==) #-}
294294
xs == ys = Bundle.eq (G.stream xs) (G.stream ys)
295295

296-
{-# INLINE (/=) #-}
297-
xs /= ys = not (Bundle.eq (G.stream xs) (G.stream ys))
298-
299296
-- See http://trac.haskell.org/vector/ticket/12
300297
instance Ord a => Ord (Vector a) where
301298
{-# INLINE compare #-}

vector/src/Data/Vector/Primitive.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,6 @@ instance (Prim a, Eq a) => Eq (Vector a) where
272272
{-# INLINE (==) #-}
273273
xs == ys = Bundle.eq (G.stream xs) (G.stream ys)
274274

275-
{-# INLINE (/=) #-}
276-
xs /= ys = not (Bundle.eq (G.stream xs) (G.stream ys))
277-
278275
-- See http://trac.haskell.org/vector/ticket/12
279276
instance (Prim a, Ord a) => Ord (Vector a) where
280277
{-# INLINE compare #-}

vector/src/Data/Vector/Storable.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,6 @@ instance (Storable a, Eq a) => Eq (Vector a) where
284284
{-# INLINE (==) #-}
285285
xs == ys = Bundle.eq (G.stream xs) (G.stream ys)
286286

287-
{-# INLINE (/=) #-}
288-
xs /= ys = not (Bundle.eq (G.stream xs) (G.stream ys))
289-
290287
-- See http://trac.haskell.org/vector/ticket/12
291288
instance (Storable a, Ord a) => Ord (Vector a) where
292289
{-# INLINE compare #-}

vector/src/Data/Vector/Unboxed.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,6 @@ instance (Unbox a, Eq a) => Eq (Vector a) where
234234
{-# INLINE (==) #-}
235235
xs == ys = Bundle.eq (G.stream xs) (G.stream ys)
236236

237-
{-# INLINE (/=) #-}
238-
xs /= ys = not (Bundle.eq (G.stream xs) (G.stream ys))
239-
240237
-- See http://trac.haskell.org/vector/ticket/12
241238
instance (Unbox a, Ord a) => Ord (Vector a) where
242239
{-# INLINE compare #-}

0 commit comments

Comments
 (0)