on master help sign in
Make the Eq instance doc clearer.
5274d3fHarendra Kumar
core/src/Streamly/Internal/Data/Array/Type.hs+3−7
@@ -879,13 +879,9 @@ MK_EQ_INSTANCE(Int16)
879MK_EQ_INSTANCE(Int32)
879MK_EQ_INSTANCE(Int32)
880MK_EQ_INSTANCE(Int64)
880MK_EQ_INSTANCE(Int64)
881
881
882−-- | If the type allows a byte-by-byte comparison (see 'byteCmp') this instance
882+-- | If the type allows a byte-by-byte comparison this instance can be
883−-- can be overlapped by a more specific instance that uses a byte comparison.
883+-- overlapped by a more specific instance that uses 'byteCmp'. Byte comparison
884−-- Byte comparison can be significantly faster.
884+-- can be significantly faster.
885−--
886−-- For example:
887−--
888−-- >>> (==) = byteCmp
889--
885--
890instance {-# OVERLAPPABLE #-} (Unbox a, Eq a) => Eq (Array a) where
886instance {-# OVERLAPPABLE #-} (Unbox a, Eq a) => Eq (Array a) where
891 {-# INLINE (==) #-}
887 {-# INLINE (==) #-}