mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-09-17 11:37:20 +03:00
Make the Eq instance doc clearer.
Avoid using byteCmp example, it may give an impression of how the instance is defined.
This commit is contained in:
parent
0ebc91ccab
commit
5274d3f1e3
@ -879,13 +879,9 @@ MK_EQ_INSTANCE(Int16)
|
||||
MK_EQ_INSTANCE(Int32)
|
||||
MK_EQ_INSTANCE(Int64)
|
||||
|
||||
-- | If the type allows a byte-by-byte comparison (see 'byteCmp') this instance
|
||||
-- can be overlapped by a more specific instance that uses a byte comparison.
|
||||
-- Byte comparison can be significantly faster.
|
||||
--
|
||||
-- For example:
|
||||
--
|
||||
-- >>> (==) = byteCmp
|
||||
-- | If the type allows a byte-by-byte comparison this instance can be
|
||||
-- overlapped by a more specific instance that uses 'byteCmp'. Byte comparison
|
||||
-- can be significantly faster.
|
||||
--
|
||||
instance {-# OVERLAPPABLE #-} (Unbox a, Eq a) => Eq (Array a) where
|
||||
{-# INLINE (==) #-}
|
||||
|
Loading…
Reference in New Issue
Block a user