dev-qt/qttest: stable 5.14.2 for ppc, bug #719732
[gentoo.git] / dev-haskell / vector-binary-instances / metadata.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3 <pkgmetadata>
4         <maintainer type="project">
5                 <email>haskell@gentoo.org</email>
6                 <name>Gentoo Haskell</name>
7         </maintainer>
8         <longdescription>
9                 Instances for Binary for the types defined in the vector package,
10                 making it easy to serialize vectors to and from disk. We use the
11                 generic interface to vectors, so all vector types are supported.
12                 Specific instances are provided for unboxed, boxed and storable
13                 vectors.
14                 
15                 To serialize a vector:
16                 
17                 &gt; *Data.Vector.Binary&gt; let v = Data.Vector.fromList [1..10]
18                 &gt; *Data.Vector.Binary&gt; v
19                 &gt; fromList [1,2,3,4,5,6,7,8,9,10] :: Data.Vector.Vector
20                 &gt; *Data.Vector.Binary&gt; encode v
21                 &gt; Chunk "\NUL\NUL\NUL\NUL\NUL...\NUL\NUL\NUL\t\NUL\NUL\NUL\NUL\n" Empty
22                 
23                 Which you can in turn compress before writing to disk:
24                 
25                 &gt; compress . encode $ v
26                 &gt; Chunk "\US\139\b\NUL\NUL\N...\229\240,\254:\NUL\NUL\NUL" Empty
27         </longdescription>
28         <upstream>
29                 <remote-id type="github">bos/vector-binary-instances</remote-id>
30         </upstream>
31 </pkgmetadata>