/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html is in libghc-cereal-doc 0.4.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Serialize.Put</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Serialize-Put.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Serialize-Put.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cereal-0.4.0.1: A binary serialization library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Stability</th><td>Portability :</td></tr><tr><th>Maintainer</th><td>Trevor Elliott <trevor@galois.com></td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Data.Serialize.Put</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">The Put type
</a></li><li><a href="#g:2">Flushing the implicit parse state
</a></li><li><a href="#g:3">Primitives
</a></li><li><a href="#g:4">Big-endian primitives
</a></li><li><a href="#g:5">Little-endian primitives
</a></li><li><a href="#g:6">Host-endian, unaligned writes
</a></li><li><a href="#g:7">Containers
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The Put monad. A monad for efficiently constructing bytestrings.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">type</span> <a href="#t:Put">Put</a> = <a href="Data-Serialize-Put.html#t:PutM">PutM</a> ()</li><li class="src short"><span class="keyword">newtype</span> <a href="#t:PutM">PutM</a> a = <a href="#v:Put">Put</a> {<ul class="subs"><li><a href="#v:unPut">unPut</a> :: PairS a</li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:Putter">Putter</a> a = a -> <a href="Data-Serialize-Put.html#t:Put">Put</a></li><li class="src short"><a href="#v:runPut">runPut</a> :: <a href="Data-Serialize-Put.html#t:Put">Put</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:runPutM">runPutM</a> :: <a href="Data-Serialize-Put.html#t:PutM">PutM</a> a -> (a, <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:runPutLazy">runPutLazy</a> :: <a href="Data-Serialize-Put.html#t:Put">Put</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:runPutMLazy">runPutMLazy</a> :: <a href="Data-Serialize-Put.html#t:PutM">PutM</a> a -> (a, <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:putBuilder">putBuilder</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="Data-Serialize-Builder.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:execPut">execPut</a> :: <a href="Data-Serialize-Put.html#t:PutM">PutM</a> a -> <a href="Data-Serialize-Builder.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:flush">flush</a> :: <a href="Data-Serialize-Put.html#t:Put">Put</a></li><li class="src short"><a href="#v:putWord8">putWord8</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a></li><li class="src short"><a href="#v:putByteString">putByteString</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:putLazyByteString">putLazyByteString</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:putWord16be">putWord16be</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a></li><li class="src short"><a href="#v:putWord32be">putWord32be</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a></li><li class="src short"><a href="#v:putWord64be">putWord64be</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a></li><li class="src short"><a href="#v:putWord16le">putWord16le</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a></li><li class="src short"><a href="#v:putWord32le">putWord32le</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a></li><li class="src short"><a href="#v:putWord64le">putWord64le</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a></li><li class="src short"><a href="#v:putWordhost">putWordhost</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word">Word</a></li><li class="src short"><a href="#v:putWord16host">putWord16host</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a></li><li class="src short"><a href="#v:putWord32host">putWord32host</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a></li><li class="src short"><a href="#v:putWord64host">putWord64host</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a></li><li class="src short"><a href="#v:putTwoOf">putTwoOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> b -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (a, b)</li><li class="src short"><a href="#v:putListOf">putListOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> [a]</li><li class="src short"><a href="#v:putIArrayOf">putIArrayOf</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ix.html#t:Ix">Ix</a> i, <a href="/usr/share/doc/ghc-doc/html/libraries/array-0.4.0.1/Data-Array-IArray.html#t:IArray">IArray</a> a e) => <a href="Data-Serialize-Put.html#t:Putter">Putter</a> i -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> e -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (a i e)</li><li class="src short"><a href="#v:putSeqOf">putSeqOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Sequence.html#t:Seq">Seq</a> a)</li><li class="src short"><a href="#v:putTreeOf">putTreeOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Tree.html#t:Tree">Tree</a> a)</li><li class="src short"><a href="#v:putMapOf">putMapOf</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> k => <a href="Data-Serialize-Put.html#t:Putter">Putter</a> k -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> k a)</li><li class="src short"><a href="#v:putIntMapOf">putIntMapOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-IntMap-Strict.html#t:IntMap">IntMap</a> a)</li><li class="src short"><a href="#v:putSetOf">putSetOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> a)</li><li class="src short"><a href="#v:putIntSetOf">putIntSetOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-IntSet.html#t:IntSet">IntSet</a></li><li class="src short"><a href="#v:putMaybeOf">putMaybeOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)</li><li class="src short"><a href="#v:putEitherOf">putEitherOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> b -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> a b)</li></ul></div><div id="interface"><h1 id="g:1">The Put type
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Put" class="def">Put</a> = <a href="Data-Serialize-Put.html#t:PutM">PutM</a> ()<a href="src/Data-Serialize-Put.html#Put" class="link">Source</a></p><div class="doc"><p>Put merely lifts Builder into a Writer monad, applied to ().
</p></div></div><div class="top"><p class="src"><span class="keyword">newtype</span> <a name="t:PutM" class="def">PutM</a> a <a href="src/Data-Serialize-Put.html#PutM" class="link">Source</a></p><div class="doc"><p>The PutM type. A Writer monad over the efficient Builder monoid.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Put" class="def">Put</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:unPut" class="def">unPut</a> :: PairS a</dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:PutM" class="caption collapser" onclick="toggleSection('i:PutM')">Instances</p><div id="section.i:PutM" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Monad">Monad</a> <a href="Data-Serialize-Put.html#t:PutM">PutM</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Functor">Functor</a> <a href="Data-Serialize-Put.html#t:PutM">PutM</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Data-Serialize-Put.html#t:PutM">PutM</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Putter" class="def">Putter</a> a = a -> <a href="Data-Serialize-Put.html#t:Put">Put</a><a href="src/Data-Serialize-Put.html#Putter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:runPut" class="def">runPut</a> :: <a href="Data-Serialize-Put.html#t:Put">Put</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Serialize-Put.html#runPut" class="link">Source</a></p><div class="doc"><p>Run the <code><a href="Data-Serialize-Put.html#t:Put">Put</a></code> monad with a serialiser
</p></div></div><div class="top"><p class="src"><a name="v:runPutM" class="def">runPutM</a> :: <a href="Data-Serialize-Put.html#t:PutM">PutM</a> a -> (a, <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>)<a href="src/Data-Serialize-Put.html#runPutM" class="link">Source</a></p><div class="doc"><p>Run the <code><a href="Data-Serialize-Put.html#t:Put">Put</a></code> monad with a serialiser and get its result
</p></div></div><div class="top"><p class="src"><a name="v:runPutLazy" class="def">runPutLazy</a> :: <a href="Data-Serialize-Put.html#t:Put">Put</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><a href="src/Data-Serialize-Put.html#runPutLazy" class="link">Source</a></p><div class="doc"><p>Run the <code><a href="Data-Serialize-Put.html#t:Put">Put</a></code> monad with a serialiser
</p></div></div><div class="top"><p class="src"><a name="v:runPutMLazy" class="def">runPutMLazy</a> :: <a href="Data-Serialize-Put.html#t:PutM">PutM</a> a -> (a, <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)<a href="src/Data-Serialize-Put.html#runPutMLazy" class="link">Source</a></p><div class="doc"><p>Run the <code><a href="Data-Serialize-Put.html#t:Put">Put</a></code> monad with a serialiser
</p></div></div><div class="top"><p class="src"><a name="v:putBuilder" class="def">putBuilder</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="Data-Serialize-Builder.html#t:Builder">Builder</a><a href="src/Data-Serialize-Put.html#putBuilder" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:execPut" class="def">execPut</a> :: <a href="Data-Serialize-Put.html#t:PutM">PutM</a> a -> <a href="Data-Serialize-Builder.html#t:Builder">Builder</a><a href="src/Data-Serialize-Put.html#execPut" class="link">Source</a></p><div class="doc"><p>Run the <code><a href="Data-Serialize-Put.html#t:Put">Put</a></code> monad
</p></div></div><h1 id="g:2">Flushing the implicit parse state
</h1><div class="top"><p class="src"><a name="v:flush" class="def">flush</a> :: <a href="Data-Serialize-Put.html#t:Put">Put</a><a href="src/Data-Serialize-Put.html#flush" class="link">Source</a></p><div class="doc"><p>Pop the ByteString we have constructed so far, if any, yielding a
new chunk in the result ByteString.
</p></div></div><h1 id="g:3">Primitives
</h1><div class="top"><p class="src"><a name="v:putWord8" class="def">putWord8</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a><a href="src/Data-Serialize-Put.html#putWord8" class="link">Source</a></p><div class="doc"><p>Efficiently write a byte into the output buffer
</p></div></div><div class="top"><p class="src"><a name="v:putByteString" class="def">putByteString</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Serialize-Put.html#putByteString" class="link">Source</a></p><div class="doc"><p>An efficient primitive to write a strict ByteString into the output buffer.
It flushes the current buffer, and writes the argument into a new chunk.
</p></div></div><div class="top"><p class="src"><a name="v:putLazyByteString" class="def">putLazyByteString</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><a href="src/Data-Serialize-Put.html#putLazyByteString" class="link">Source</a></p><div class="doc"><p>Write a lazy ByteString efficiently, simply appending the lazy
ByteString chunks to the output buffer
</p></div></div><h1 id="g:4">Big-endian primitives
</h1><div class="top"><p class="src"><a name="v:putWord16be" class="def">putWord16be</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a><a href="src/Data-Serialize-Put.html#putWord16be" class="link">Source</a></p><div class="doc"><p>Write a Word16 in big endian format
</p></div></div><div class="top"><p class="src"><a name="v:putWord32be" class="def">putWord32be</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a><a href="src/Data-Serialize-Put.html#putWord32be" class="link">Source</a></p><div class="doc"><p>Write a Word32 in big endian format
</p></div></div><div class="top"><p class="src"><a name="v:putWord64be" class="def">putWord64be</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a><a href="src/Data-Serialize-Put.html#putWord64be" class="link">Source</a></p><div class="doc"><p>Write a Word64 in big endian format
</p></div></div><h1 id="g:5">Little-endian primitives
</h1><div class="top"><p class="src"><a name="v:putWord16le" class="def">putWord16le</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a><a href="src/Data-Serialize-Put.html#putWord16le" class="link">Source</a></p><div class="doc"><p>Write a Word16 in little endian format
</p></div></div><div class="top"><p class="src"><a name="v:putWord32le" class="def">putWord32le</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a><a href="src/Data-Serialize-Put.html#putWord32le" class="link">Source</a></p><div class="doc"><p>Write a Word32 in little endian format
</p></div></div><div class="top"><p class="src"><a name="v:putWord64le" class="def">putWord64le</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a><a href="src/Data-Serialize-Put.html#putWord64le" class="link">Source</a></p><div class="doc"><p>Write a Word64 in little endian format
</p></div></div><h1 id="g:6">Host-endian, unaligned writes
</h1><div class="top"><p class="src"><a name="v:putWordhost" class="def">putWordhost</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word">Word</a><a href="src/Data-Serialize-Put.html#putWordhost" class="link">Source</a></p><div class="doc"><p><em>O(1).</em> Write a single native machine word. The word is
written in host order, host endian form, for the machine you're on.
On a 64 bit machine the Word is an 8 byte value, on a 32 bit machine,
4 bytes. Values written this way are not portable to
different endian or word sized machines, without conversion.
</p></div></div><div class="top"><p class="src"><a name="v:putWord16host" class="def">putWord16host</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word16">Word16</a><a href="src/Data-Serialize-Put.html#putWord16host" class="link">Source</a></p><div class="doc"><p><em>O(1).</em> Write a Word16 in native host order and host endianness.
For portability issues see <code>putWordhost</code>.
</p></div></div><div class="top"><p class="src"><a name="v:putWord32host" class="def">putWord32host</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word32">Word32</a><a href="src/Data-Serialize-Put.html#putWord32host" class="link">Source</a></p><div class="doc"><p><em>O(1).</em> Write a Word32 in native host order and host endianness.
For portability issues see <code>putWordhost</code>.
</p></div></div><div class="top"><p class="src"><a name="v:putWord64host" class="def">putWord64host</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word64">Word64</a><a href="src/Data-Serialize-Put.html#putWord64host" class="link">Source</a></p><div class="doc"><p><em>O(1).</em> Write a Word64 in native host order
On a 32 bit machine we write two host order Word32s, in big endian form.
For portability issues see <code>putWordhost</code>.
</p></div></div><h1 id="g:7">Containers
</h1><div class="top"><p class="src"><a name="v:putTwoOf" class="def">putTwoOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> b -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (a, b)<a href="src/Data-Serialize-Put.html#putTwoOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putListOf" class="def">putListOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> [a]<a href="src/Data-Serialize-Put.html#putListOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putIArrayOf" class="def">putIArrayOf</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ix.html#t:Ix">Ix</a> i, <a href="/usr/share/doc/ghc-doc/html/libraries/array-0.4.0.1/Data-Array-IArray.html#t:IArray">IArray</a> a e) => <a href="Data-Serialize-Put.html#t:Putter">Putter</a> i -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> e -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (a i e)<a href="src/Data-Serialize-Put.html#putIArrayOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putSeqOf" class="def">putSeqOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Sequence.html#t:Seq">Seq</a> a)<a href="src/Data-Serialize-Put.html#putSeqOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putTreeOf" class="def">putTreeOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Tree.html#t:Tree">Tree</a> a)<a href="src/Data-Serialize-Put.html#putTreeOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putMapOf" class="def">putMapOf</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> k => <a href="Data-Serialize-Put.html#t:Putter">Putter</a> k -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> k a)<a href="src/Data-Serialize-Put.html#putMapOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putIntMapOf" class="def">putIntMapOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-IntMap-Strict.html#t:IntMap">IntMap</a> a)<a href="src/Data-Serialize-Put.html#putIntMapOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putSetOf" class="def">putSetOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> a)<a href="src/Data-Serialize-Put.html#putSetOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putIntSetOf" class="def">putIntSetOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-IntSet.html#t:IntSet">IntSet</a><a href="src/Data-Serialize-Put.html#putIntSetOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putMaybeOf" class="def">putMaybeOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)<a href="src/Data-Serialize-Put.html#putMaybeOf" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:putEitherOf" class="def">putEitherOf</a> :: <a href="Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> b -> <a href="Data-Serialize-Put.html#t:Putter">Putter</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> a b)<a href="src/Data-Serialize-Put.html#putEitherOf" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|