[commit: packages/binary] master: Document 'putList'. (fbef3cb)
git at git.haskell.org
git at git.haskell.org
Tue Apr 19 20:30:18 UTC 2016
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/fbef3cb8985e54f5e638f63b6153b931668f7f00
>---------------------------------------------------------------
commit fbef3cb8985e54f5e638f63b6153b931668f7f00
Author: Lennart Kolmodin <kolmodin at gmail.com>
Date: Sun Apr 3 22:23:55 2016 +0200
Document 'putList'.
>---------------------------------------------------------------
fbef3cb8985e54f5e638f63b6153b931668f7f00
src/Data/Binary/Class.hs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs
index 5965ca0..161f2a7 100644
--- a/src/Data/Binary/Class.hs
+++ b/src/Data/Binary/Class.hs
@@ -147,6 +147,9 @@ class Binary t where
-- | Decode a value in the Get monad
get :: Get t
+ -- | Encode a list of values in the Put monad.
+ -- The default implementation may be overridden to be more efficient
+ -- but must still have the same encoding format.
putList :: [t] -> Put
putList = defaultPutList
More information about the ghc-commits
mailing list