[commit: packages/binary] ghc-head: README: Added info about a binary instance example. (b838290)
git at git.haskell.org
git at git.haskell.org
Fri Aug 30 15:20:35 CEST 2013
Repository : ssh://git@git.haskell.org/binary
On branch : ghc-head
Link : http://git.haskell.org/?p=packages/binary.git;a=commit;h=b83829094caea63e95007dc4faafef91dca35c34
>---------------------------------------------------------------
commit b83829094caea63e95007dc4faafef91dca35c34
Author: Daniel Díaz <dhelta.diaz at gmail.com>
Date: Tue Apr 16 21:27:09 2013 -0300
README: Added info about a binary instance example.
>---------------------------------------------------------------
b83829094caea63e95007dc4faafef91dca35c34
README.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 99b9425..9592c05 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,7 @@
The ``binary`` package provides Data.Binary, containing the Binary class,
and associated methods, for serialising values to and from lazy
ByteStrings.
-
A key feature of ``binary`` is that the interface is both pure, and efficient.
-
The 'binary' package is portable to GHC and Hugs.
## Building binary ##
@@ -32,6 +30,7 @@ First:
import Data.Binary
and then write an instance of Binary for the type you wish to serialise.
+An example doing exactly this can be found in the Data.Binary module.
You can also use the Data.Binary.Builder module to efficiently build
lazy bytestrings using the ``Builder`` monoid. Or, alternatively, the
Data.Binary.Get and Data.Binary.Put to serialize/deserialize using
More information about the ghc-commits
mailing list