/usr/share/doc/libghc-bytestring-show-doc/html/Text-Show-ByteString.html is in libghc-bytestring-show-doc 0.3.5.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 52 53 54 55 56 57 58 59 60 61 62 63 | <!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>Text.Show.ByteString</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_Text-Show-ByteString.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Show-ByteString.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">bytestring-show-0.3.5.1: Efficient conversion of values into readable byte strings.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>Non-portable (type synonym instances)</td></tr><tr><th>Stability</th><td>Experimental</td></tr><tr><th>Maintainer</th><td>Dan Doel</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Text.Show.ByteString</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">The Show class
</a></li><li><a href="#g:2">Putting Chars
</a></li><li><a href="#g:3">Putting Strings
</a></li><li><a href="#g:4">Putting digits
</a></li><li><a href="#g:5">Putting integers
</a></li><li><a href="#g:6">Putting floats
</a></li><li><a href="#g:7">Combining builders
</a></li><li><a href="#g:8">Printing values
</a></li><li><a href="#g:9">Put
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Efficiently convert from values to lazy byte strings.
</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">class</span> <a href="#t:Show">Show</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:showpPrec">showpPrec</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li><a href="#v:showp">showp</a> :: a -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li><a href="#v:showpList">showpList</a> :: [a] -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li></ul></li><li class="src short"><a href="#v:show">show</a> :: <a href="Text-Show-ByteString.html#t:Show">Show</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.9.2.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:putAscii">putAscii</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:putUTF8">putUTF8</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:putAsciiStr">putAsciiStr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:putUTF8Str">putUTF8Str</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:unsafePutDigit">unsafePutDigit</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:putDigit">putDigit</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:showpIntAtBase">showpIntAtBase</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a => a -> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>) -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:showpGFloat">showpGFloat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:showpFFloat">showpFFloat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:showpEFloat">showpEFloat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:unlinesP">unlinesP</a> :: [<a href="Text-Show-ByteString.html#t:Put">Put</a>] -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:unwordsP">unwordsP</a> :: [<a href="Text-Show-ByteString.html#t:Put">Put</a>] -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:showpParen">showpParen</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a></li><li class="src short"><a href="#v:print">print</a> :: <a href="Text-Show-ByteString.html#t:Show">Show</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Put">Put</a> = <a href="Text-Show-ByteString.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"><a href="#v:runPut">runPut</a> :: <a href="Text-Show-ByteString.html#t:Put">Put</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.9.2.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li></ul></div><div id="interface"><h1 id="g:1">The Show class
</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Show" class="def">Show</a> a <span class="keyword">where</span><a href="src/Text-Show-ByteString.html#Show" class="link">Source</a></p><div class="doc"><p>Conversion of values to readable byte strings.
Minimal complete definition: <code><a href="Text-Show-ByteString.html#v:showp">showp</a></code> or <code><a href="Text-Show-ByteString.html#v:showpPrec">showpPrec</a></code>
</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:showpPrec" class="def">showpPrec</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#showpPrec" class="link">Source</a></p><div class="doc"><p>Encodes a value to an efficient byte string builder.
The precedence is used to determine where to put
parentheses in a shown expression involving operators.
</p><p>Values of type Put can be efficiently combined, so the
showp functions are available for showing multiple values
before producing an output byte string.
</p></div><p class="src"><a name="v:showp" class="def">showp</a> :: a -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#showp" class="link">Source</a></p><div class="doc"><p>Encodes a value to an efficient byte string builder.
Values of type Put can be efficiently combined, so this
is available for building strings from multiple values.
</p></div><p class="src"><a name="v:showpList" class="def">showpList</a> :: [a] -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#showpList" class="link">Source</a></p><div class="doc"><p>Allows for specialized display of lists of values.
This is used, for example, when showing arrays of Chars.
</p></div></div><div class="subs instances"><p id="control.i:Show" class="caption collapser" onclick="toggleSection('i:Show')">Instances</p><div id="section.i:Show" class="show"><table><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Float">Float</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int8">Int8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int16">Int16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int32">Int32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int64">Int64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ordering">Ordering</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word">Word</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word8">Word8</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word32">Word32</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word64">Word64</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> ()</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="Text-Show-ByteString.html#t:Put">Put</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> a => <a href="Text-Show-ByteString.html#t:Show">Show</a> [a]</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ratio.html#t:Ratio">Ratio</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Complex.html#t:Complex">Complex</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> a => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> e => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.4.2.1/Data-Set.html#t:Set">Set</a> e)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> a b)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (a, b)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> i, <a href="Text-Show-ByteString.html#t:Show">Show</a> e, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ix.html#t:Ix">Ix</a> i) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/array-0.4.0.0/Data-Array.html#t:Array">Array</a> i e)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> k, <a href="Text-Show-ByteString.html#t:Show">Show</a> v) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.4.2.1/Data-Map.html#t:Map">Map</a> k v)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b, <a href="Text-Show-ByteString.html#t:Show">Show</a> c) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (a, b, c)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b, <a href="Text-Show-ByteString.html#t:Show">Show</a> c, <a href="Text-Show-ByteString.html#t:Show">Show</a> d) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (a, b, c, d)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b, <a href="Text-Show-ByteString.html#t:Show">Show</a> c, <a href="Text-Show-ByteString.html#t:Show">Show</a> d, <a href="Text-Show-ByteString.html#t:Show">Show</a> e) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (a, b, c, d, e)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b, <a href="Text-Show-ByteString.html#t:Show">Show</a> c, <a href="Text-Show-ByteString.html#t:Show">Show</a> d, <a href="Text-Show-ByteString.html#t:Show">Show</a> e, <a href="Text-Show-ByteString.html#t:Show">Show</a> f) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (a, b, c, d, e, f)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Text-Show-ByteString.html#t:Show">Show</a> a, <a href="Text-Show-ByteString.html#t:Show">Show</a> b, <a href="Text-Show-ByteString.html#t:Show">Show</a> c, <a href="Text-Show-ByteString.html#t:Show">Show</a> d, <a href="Text-Show-ByteString.html#t:Show">Show</a> e, <a href="Text-Show-ByteString.html#t:Show">Show</a> f, <a href="Text-Show-ByteString.html#t:Show">Show</a> g) => <a href="Text-Show-ByteString.html#t:Show">Show</a> (a, b, c, d, e, f, g)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:show" class="def">show</a> :: <a href="Text-Show-ByteString.html#t:Show">Show</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.9.2.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><a href="src/Text-Show-ByteString.html#show" class="link">Source</a></p><div class="doc"><p>Encode a single value into a byte string
</p></div></div><h1 id="g:2">Putting Chars
</h1><div class="top"><p class="src"><a name="v:putAscii" class="def">putAscii</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Util.html#putAscii" class="link">Source</a></p><div class="doc"><p>Writes a single Char to a byte string, assuming it's ascii.
</p></div></div><div class="top"><p class="src"><a name="v:putUTF8" class="def">putUTF8</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Util.html#putUTF8" class="link">Source</a></p><div class="doc"><p>Writes a single Char to a byte string, properly UTF-8 encoded
</p></div></div><h1 id="g:3">Putting Strings
</h1><div class="top"><p class="src"><a name="v:putAsciiStr" class="def">putAsciiStr</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Util.html#putAsciiStr" class="link">Source</a></p><div class="doc"><p>Writes a string of ascii characters to a byte string
</p></div></div><div class="top"><p class="src"><a name="v:putUTF8Str" class="def">putUTF8Str</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Util.html#putUTF8Str" class="link">Source</a></p><div class="doc"><p>Writes a string of unicode characters to a byte string,
properly UTF-8 encoded
</p></div></div><h1 id="g:4">Putting digits
</h1><div class="top"><p class="src"><a name="v:unsafePutDigit" class="def">unsafePutDigit</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Util.html#unsafePutDigit" class="link">Source</a></p><div class="doc"><p>Puts the decimal digit corresponding to the given Int without
checking that it is in the interval [0,9]
</p></div></div><div class="top"><p class="src"><a name="v:putDigit" class="def">putDigit</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#putDigit" class="link">Source</a></p><div class="doc"><p>Puts the digit corresponding to the Int passed in.
</p></div></div><h1 id="g:5">Putting integers
</h1><div class="top"><p class="src"><a name="v:showpIntAtBase" class="def">showpIntAtBase</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a => a -> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>) -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Integer.html#showpIntAtBase" class="link">Source</a></p><div class="doc"><p>Shows an Integral number using the base specified by the first
argument and the chracter representation specified by the second.
</p></div></div><h1 id="g:6">Putting floats
</h1><div class="top"><p class="src"><a name="v:showpGFloat" class="def">showpGFloat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Float.html#showpGFloat" class="link">Source</a></p><div class="doc"><p>Show a signed RealFloat value using decimal notation when the
absolute value lies between 0.1 and 9,999,999, and scientific
notation otherwise. The optional integer can be used to specify
precision.
</p></div></div><div class="top"><p class="src"><a name="v:showpFFloat" class="def">showpFFloat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Float.html#showpFFloat" class="link">Source</a></p><div class="doc"><p>Show a signed RealFloat value using decimal notation. The optional
integer can be used to specify precision.
</p></div></div><div class="top"><p class="src"><a name="v:showpEFloat" class="def">showpEFloat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString-Float.html#showpEFloat" class="link">Source</a></p><div class="doc"><p>Show a signed RealFloat value using scientific (exponential) notation.
The optional integer can be used to specify precision.
</p></div></div><h1 id="g:7">Combining builders
</h1><div class="top"><p class="src"><a name="v:unlinesP" class="def">unlinesP</a> :: [<a href="Text-Show-ByteString.html#t:Put">Put</a>] -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#unlinesP" class="link">Source</a></p><div class="doc"><p>Merge several string builders, separating them by newlines
</p></div></div><div class="top"><p class="src"><a name="v:unwordsP" class="def">unwordsP</a> :: [<a href="Text-Show-ByteString.html#t:Put">Put</a>] -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#unwordsP" class="link">Source</a></p><div class="doc"><p>Merge several string builders, separating them by spaces
</p></div></div><div class="top"><p class="src"><a name="v:showpParen" class="def">showpParen</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a> -> <a href="Text-Show-ByteString.html#t:Put">Put</a><a href="src/Text-Show-ByteString.html#showpParen" class="link">Source</a></p><div class="doc"><p>A utility function for surrounding output by parentheses
conditionally.
</p></div></div><h1 id="g:8">Printing values
</h1><div class="top"><p class="src"><a name="v:print" class="def">print</a> :: <a href="Text-Show-ByteString.html#t:Show">Show</a> a => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Text-Show-ByteString.html#print" class="link">Source</a></p><div class="doc"><p>Print a value to the standard output
</p></div></div><h1 id="g:9">Put
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Put" class="def">Put</a> = <a href="Text-Show-ByteString.html#t:PutM">PutM</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 </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.5.0.0/Control-Monad.html#t:Monad">Monad</a> <a href="Text-Show-ByteString.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.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Text-Show-ByteString.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.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Text-Show-ByteString.html#t:PutM">PutM</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Text-Show-ByteString.html#t:Show">Show</a> <a href="Text-Show-ByteString.html#t:Put">Put</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:runPut" class="def">runPut</a> :: <a href="Text-Show-ByteString.html#t:Put">Put</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.9.2.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></p><div class="doc"><p>Run the <code><a href="Text-Show-ByteString.html#t:Put">Put</a></code> monad with a serialiser
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|