Skip to content

Commit

Permalink
Remove zipWith rewrite rule (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored May 19, 2021
1 parent cdf6ebb commit 4d137aa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Data/ByteString.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1624,11 +1624,6 @@ packZipWith f (BS fp l) (BS fq m) = unsafeDupablePerformIO $
len = min l m
{-# INLINE packZipWith #-}

{-# RULES
"ByteString specialise zipWith" forall (f :: Word8 -> Word8 -> Word8) p q .
zipWith f p q = unpack (packZipWith f p q)
#-}

-- | /O(n)/ 'unzip' transforms a list of pairs of bytes into a pair of
-- ByteStrings. Note that this performs two 'pack' operations.
unzip :: [(Word8,Word8)] -> (ByteString,ByteString)
Expand Down

0 comments on commit 4d137aa

Please sign in to comment.