[commit: bytestring] ghc-7.6: Fix property in the documentation for unfoldrN (d27b952)
Paolo Capriotti
p.capriotti at gmail.com
Thu Sep 6 12:28:43 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/bytestring
On branch : ghc-7.6
http://hackage.haskell.org/trac/ghc/changeset/d27b952e9d248f51663800fe4cce3380951be92f
>---------------------------------------------------------------
commit d27b952e9d248f51663800fe4cce3380951be92f
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 1c50eb7..eee8944 100644
--- a/Data/ByteString.hs
+++ b/Data/ByteString.hs
@@ -820,7 +820,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