Skip to content

Commit

Permalink
Work around bug #1694 in BSL.groupBy [fbt]
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoerzen committed Sep 14, 2007
1 parent 89326ac commit 9994c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Data/ListLike/Instances.hs
Expand Up @@ -262,7 +262,8 @@ instance ListLike BSL.ByteString Word8 where
--deleteFirstsBy = BSL.deleteFirstsBy
--unionBy = BSL.unionBy
--intersectBy = BSL.intersectBy
groupBy f = fromList . BSL.groupBy f
-- BSL.groupBy is broken. groupBy f = fromList . BSL.groupBy f
groupBy func = map fromList . L.groupBy func . toList
--sortBy = BSL.sortBy
--insertBy = BSL.insertBy
genericLength = fromInteger . fromIntegral . BSL.length
Expand Down

0 comments on commit 9994c0b

Please sign in to comment.