[commit: bytestring] ghc-7.6: Fix property in the documentation for unfoldrN (9dcefae)

Ian Lynagh igloo at earth.li
Thu Nov 29 16:17:57 CET 2012


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 <duncan at community.haskell.org>
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





More information about the Cvs-libraries mailing list