Repository : ssh://darcs.haskell.org//srv/darcs/packages/bytestring On branch : ghc-7.6
http://hackage.haskell.org/trac/ghc/changeset/9dcefaec6ccfc19e6fa4e711c8555ea93dd8cb39 >--------------------------------------------------------------- commit 9dcefaec6ccfc19e6fa4e711c8555ea93dd8cb39 Author: Duncan Coutts <[email protected]> Date: Tue Aug 28 20:24:33 2012 +0000 Fix property in the documentation for unfoldrN Spotted by Dan Burton >--------------------------------------------------------------- Data/ByteString.hs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Data/ByteString.hs b/Data/ByteString.hs index 627ddae..aae63d6 100644 --- a/Data/ByteString.hs +++ b/Data/ByteString.hs @@ -809,7 +809,7 @@ unfoldr f = concat . unfoldChunk 32 64 -- -- The following equation relates 'unfoldrN' and 'unfoldr': -- --- > snd (unfoldrN n f s) == take n (unfoldr f s) +-- > fst (unfoldrN n f s) == take n (unfoldr f s) -- unfoldrN :: Int -> (a -> Maybe (Word8, a)) -> a -> (ByteString, Maybe a) unfoldrN i f x0 _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
