[commit: packages/bytestring] master: Haddock fixup. (d5f5b6b)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:31:58 UTC 2017
Repository : ssh://git@git.haskell.org/bytestring
On branch : master
Link : http://git.haskell.org/packages/bytestring.git/commitdiff/d5f5b6bcf3077259bdbe3e845a9c72f6b05ad69b
>---------------------------------------------------------------
commit d5f5b6bcf3077259bdbe3e845a9c72f6b05ad69b
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date: Wed Dec 7 11:26:13 2016 -0800
Haddock fixup.
Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>
>---------------------------------------------------------------
d5f5b6bcf3077259bdbe3e845a9c72f6b05ad69b
Data/ByteString.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Data/ByteString.hs b/Data/ByteString.hs
index af4e889..d23ffb6 100644
--- a/Data/ByteString.hs
+++ b/Data/ByteString.hs
@@ -316,14 +316,14 @@ singleton c = unsafeCreate 1 $ \p -> poke p c
--
--
--- | /O(n)/ Convert a '[Word8]' into a 'ByteString'.
+-- | /O(n)/ Convert a @['Word8']@ into a 'ByteString'.
--
-- For applications with large numbers of string literals, pack can be a
-- bottleneck. In such cases, consider using packAddress (GHC only).
pack :: [Word8] -> ByteString
pack = packBytes
--- | /O(n)/ Converts a 'ByteString' to a '[Word8]'.
+-- | /O(n)/ Converts a 'ByteString' to a @['Word8']@.
unpack :: ByteString -> [Word8]
unpack bs = build (unpackFoldr bs)
{-# INLINE unpack #-}
More information about the ghc-commits
mailing list