/usr/share/doc/libghc-text-show-doc/html/TextShow-Data-Floating.html is in libghc-text-show-doc 3.6-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 | <!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>TextShow.Data.Floating</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_TextShow-Data-Floating.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/TextShow-Data-Floating.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">text-show-3.6: Efficient conversion of values into Text</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(C) 2014-2017 Ryan Scott</td></tr><tr><th>License</th><td>BSD-style (see the file LICENSE)</td></tr><tr><th>Maintainer</th><td>Ryan Scott</td></tr><tr><th>Stability</th><td>Provisional</td></tr><tr><th>Portability</th><td>GHC</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">TextShow.Data.Floating</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#section.orphans">Orphan instances</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p><code><a href="TextShow.html#t:TextShow">TextShow</a></code> instances and monomorphic functions for floating-point types.</p><p><em>Since: 2</em></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"><a href="#v:showbRealFloatPrec">showbRealFloatPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:showbEFloat">showbEFloat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:showbFFloat">showbFFloat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:showbGFloat">showbGFloat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:showbFFloatAlt">showbFFloatAlt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:showbGFloatAlt">showbGFloatAlt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:showbFPFormat">showbFPFormat</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:FPFormat">FPFormat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a><ul class="subs"><li>= <a href="#v:Exponent">Exponent</a></li><li>| <a href="#v:Fixed">Fixed</a></li><li>| <a href="#v:Generic">Generic</a></li></ul></li><li class="src short"><a href="#v:formatRealFloatB">formatRealFloatB</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:formatRealFloatAltB">formatRealFloatAltB</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:showbRealFloatPrec" class="def">showbRealFloatPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbRealFloatPrec" class="link">Source</a> <a href="#v:showbRealFloatPrec" class="selflink">#</a></p><div class="doc"><p>Convert a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value to a <code><a href="TextShow.html#t:Builder">Builder</a></code> with the given precedence.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:showbEFloat" class="def">showbEFloat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbEFloat" class="link">Source</a> <a href="#v:showbEFloat" class="selflink">#</a></p><div class="doc"><p>Show a signed <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value
using scientific (exponential) notation (e.g. <code>2.45e2</code>, <code>1.5e-3</code>).</p><p>In the call <code><code><a href="TextShow-Data-Floating.html#v:showbEFloat">showbEFloat</a></code> digs val</code>, if <code>digs</code> is <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code>,
the value is shown to full precision; if <code>digs</code> is <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a></code> d</code>,
then at most <code>d</code> digits after the decimal point are shown.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:showbFFloat" class="def">showbFFloat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbFFloat" class="link">Source</a> <a href="#v:showbFFloat" class="selflink">#</a></p><div class="doc"><p>Show a signed <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value
using standard decimal notation (e.g. <code>245000</code>, <code>0.0015</code>).</p><p>In the call <code><code><a href="TextShow-Data-Floating.html#v:showbFFloat">showbFFloat</a></code> digs val</code>, if <code>digs</code> is <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code>,
the value is shown to full precision; if <code>digs</code> is <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a></code> d</code>,
then at most <code>d</code> digits after the decimal point are shown.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:showbGFloat" class="def">showbGFloat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbGFloat" class="link">Source</a> <a href="#v:showbGFloat" class="selflink">#</a></p><div class="doc"><p>Show a signed <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value
using standard decimal notation for arguments whose absolute value lies
between <code>0.1</code> and <code>9,999,999</code>, and scientific notation otherwise.</p><p>In the call <code><code><a href="TextShow-Data-Floating.html#v:showbGFloat">showbGFloat</a></code> digs val</code>, if <code>digs</code> is <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code>,
the value is shown to full precision; if <code>digs</code> is <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#v:Just">Just</a></code> d</code>,
then at most <code>d</code> digits after the decimal point are shown.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:showbFFloatAlt" class="def">showbFFloatAlt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbFFloatAlt" class="link">Source</a> <a href="#v:showbFFloatAlt" class="selflink">#</a></p><div class="doc"><p>Show a signed <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value
using standard decimal notation (e.g. <code>245000</code>, <code>0.0015</code>).</p><p>This behaves as <code>showFFloat</code>, except that a decimal point
is always guaranteed, even if not needed.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:showbGFloatAlt" class="def">showbGFloatAlt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbGFloatAlt" class="link">Source</a> <a href="#v:showbGFloatAlt" class="selflink">#</a></p><div class="doc"><p>Show a signed <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value
using standard decimal notation for arguments whose absolute value lies
between <code>0.1</code> and <code>9,999,999</code>, and scientific notation otherwise.</p><p>This behaves as <code>showFFloat</code>, except that a decimal point
is always guaranteed, even if not needed.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:showbFPFormat" class="def">showbFPFormat</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Data-Floating.html#showbFPFormat" class="link">Source</a> <a href="#v:showbFPFormat" class="selflink">#</a></p><div class="doc"><p>Convert an <code><a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></code> value to a <code><a href="TextShow.html#t:Builder">Builder</a></code>.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:FPFormat" class="def">FPFormat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Kind.html#t:-42-">*</a> <a href="#t:FPFormat" class="selflink">#</a></p><div class="doc"><p>Control the rendering of floating point numbers.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:Exponent" class="def">Exponent</a></td><td class="doc"><p>Scientific notation (e.g. <code>2.3e123</code>).</p></td></tr><tr><td class="src"><a id="v:Fixed" class="def">Fixed</a></td><td class="doc"><p>Standard decimal notation.</p></td></tr><tr><td class="src"><a id="v:Generic" class="def">Generic</a></td><td class="doc"><p>Use decimal notation for values between <code>0.1</code> and
<code>9,999,999</code>, and scientific notation otherwise.</p></td></tr></table></div><div class="subs instances"><p id="control.i:FPFormat" class="caption collapser" onclick="toggleSection('i:FPFormat')">Instances</p><div id="section.i:FPFormat" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FPFormat:Enum:1" class="instance expander" onclick="toggleSection('i:id:FPFormat:Enum:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Enum">Enum</a> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FPFormat:Enum:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:succ">succ</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> <a href="#v:succ" class="selflink">#</a></p><p class="src"><a href="#v:pred">pred</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> <a href="#v:pred" class="selflink">#</a></p><p class="src"><a href="#v:toEnum">toEnum</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> <a href="#v:toEnum" class="selflink">#</a></p><p class="src"><a href="#v:fromEnum">fromEnum</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="#v:fromEnum" class="selflink">#</a></p><p class="src"><a href="#v:enumFrom">enumFrom</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] <a href="#v:enumFrom" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThen">enumFromThen</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] <a href="#v:enumFromThen" class="selflink">#</a></p><p class="src"><a href="#v:enumFromTo">enumFromTo</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] <a href="#v:enumFromTo" class="selflink">#</a></p><p class="src"><a href="#v:enumFromThenTo">enumFromThenTo</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] <a href="#v:enumFromThenTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FPFormat:Read:2" class="instance expander" onclick="toggleSection('i:id:FPFormat:Read:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Read.html#t:Read">Read</a> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FPFormat:Read:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:FPFormat:Show:3" class="instance expander" onclick="toggleSection('i:id:FPFormat:Show:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:id:FPFormat:Show:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:formatRealFloatB" class="def">formatRealFloatB</a> <a href="src/TextShow-Data-Floating.html#formatRealFloatB" class="link">Source</a> <a href="#v:formatRealFloatB" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></td><td class="doc"><p>What notation to use.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Number of decimal places to render.</p></td></tr><tr><td class="src">-> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="TextShow.html#t:Builder">Builder</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Like <code><a href="TextShow-Data-Floating.html#v:formatRealFloatAltB">formatRealFloatAltB</a></code>, except that the decimal is only shown for arguments
whose absolute value is between <code>0.1</code> and <code>9,999,999</code>.</p><p><em>Since: 2</em></p></div></div><div class="top"><p class="src"><a id="v:formatRealFloatAltB" class="def">formatRealFloatAltB</a> <a href="src/TextShow-Data-Floating.html#formatRealFloatAltB" class="link">Source</a> <a href="#v:formatRealFloatAltB" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></td><td class="doc"><p>What notation to use.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Number of decimal places to render.</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>Should a decimal point always be shown?</p></td></tr><tr><td class="src">-> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="TextShow.html#t:Builder">Builder</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Converts a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:RealFloat">RealFloat</a></code> value to a Builder, specifying if a decimal point
should always be shown.</p><p><em>Since: 2</em></p></div></div><h1>Orphan instances</h1><div id="section.orphans" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:o:ic:TextShow:TextShow:1" class="instance expander" onclick="toggleSection('i:o:ic:TextShow:TextShow:1')"></span> <a href="TextShow.html#t:TextShow">TextShow</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a></span> <a href="src/TextShow-Data-Floating.html#line-398" class="link">Source</a> <a href="#v:-36-fTextShowDouble" class="selflink">#</a></td><td class="doc"><p><em>Since: 2</em></p></td></tr><tr><td colspan="2"><div id="section.i:o:ic:TextShow:TextShow:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showbPrec">showbPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showbPrec" class="link">Source</a> <a href="#v:showbPrec" class="selflink">#</a></p><p class="src"><a href="#v:showb">showb</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showb" class="link">Source</a> <a href="#v:showb" class="selflink">#</a></p><p class="src"><a href="#v:showbList">showbList</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a>] -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showbList" class="link">Source</a> <a href="#v:showbList" class="selflink">#</a></p><p class="src"><a href="#v:showtPrec">showtPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtPrec" class="link">Source</a> <a href="#v:showtPrec" class="selflink">#</a></p><p class="src"><a href="#v:showt">showt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showt" class="link">Source</a> <a href="#v:showt" class="selflink">#</a></p><p class="src"><a href="#v:showtList">showtList</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a>] -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtList" class="link">Source</a> <a href="#v:showtList" class="selflink">#</a></p><p class="src"><a href="#v:showtlPrec">showtlPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtlPrec" class="link">Source</a> <a href="#v:showtlPrec" class="selflink">#</a></p><p class="src"><a href="#v:showtl">showtl</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtl" class="link">Source</a> <a href="#v:showtl" class="selflink">#</a></p><p class="src"><a href="#v:showtlList">showtlList</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Double">Double</a>] -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtlList" class="link">Source</a> <a href="#v:showtlList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:o:ic:TextShow:TextShow:2" class="instance expander" onclick="toggleSection('i:o:ic:TextShow:TextShow:2')"></span> <a href="TextShow.html#t:TextShow">TextShow</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a></span> <a href="src/TextShow-Data-Floating.html#line-393" class="link">Source</a> <a href="#v:-36-fTextShowFloat" class="selflink">#</a></td><td class="doc"><p><em>Since: 2</em></p></td></tr><tr><td colspan="2"><div id="section.i:o:ic:TextShow:TextShow:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showbPrec">showbPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showbPrec" class="link">Source</a> <a href="#v:showbPrec" class="selflink">#</a></p><p class="src"><a href="#v:showb">showb</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showb" class="link">Source</a> <a href="#v:showb" class="selflink">#</a></p><p class="src"><a href="#v:showbList">showbList</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a>] -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showbList" class="link">Source</a> <a href="#v:showbList" class="selflink">#</a></p><p class="src"><a href="#v:showtPrec">showtPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtPrec" class="link">Source</a> <a href="#v:showtPrec" class="selflink">#</a></p><p class="src"><a href="#v:showt">showt</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showt" class="link">Source</a> <a href="#v:showt" class="selflink">#</a></p><p class="src"><a href="#v:showtList">showtList</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a>] -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtList" class="link">Source</a> <a href="#v:showtList" class="selflink">#</a></p><p class="src"><a href="#v:showtlPrec">showtlPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtlPrec" class="link">Source</a> <a href="#v:showtlPrec" class="selflink">#</a></p><p class="src"><a href="#v:showtl">showtl</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtl" class="link">Source</a> <a href="#v:showtl" class="selflink">#</a></p><p class="src"><a href="#v:showtlList">showtlList</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Float">Float</a>] -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtlList" class="link">Source</a> <a href="#v:showtlList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:o:ic:TextShow:TextShow:3" class="instance expander" onclick="toggleSection('i:o:ic:TextShow:TextShow:3')"></span> <a href="TextShow.html#t:TextShow">TextShow</a> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a></span> <a href="src/TextShow-Data-Floating.html#line-403" class="link">Source</a> <a href="#v:-36-fTextShowFPFormat" class="selflink">#</a></td><td class="doc"><p><em>Since: 2</em></p></td></tr><tr><td colspan="2"><div id="section.i:o:ic:TextShow:TextShow:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showbPrec">showbPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showbPrec" class="link">Source</a> <a href="#v:showbPrec" class="selflink">#</a></p><p class="src"><a href="#v:showb">showb</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showb" class="link">Source</a> <a href="#v:showb" class="selflink">#</a></p><p class="src"><a href="#v:showbList">showbList</a> :: [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] -> <a href="TextShow.html#t:Builder">Builder</a> <a href="src/TextShow-Classes.html#showbList" class="link">Source</a> <a href="#v:showbList" class="selflink">#</a></p><p class="src"><a href="#v:showtPrec">showtPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtPrec" class="link">Source</a> <a href="#v:showtPrec" class="selflink">#</a></p><p class="src"><a href="#v:showt">showt</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showt" class="link">Source</a> <a href="#v:showt" class="selflink">#</a></p><p class="src"><a href="#v:showtList">showtList</a> :: [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtList" class="link">Source</a> <a href="#v:showtList" class="selflink">#</a></p><p class="src"><a href="#v:showtlPrec">showtlPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -> <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtlPrec" class="link">Source</a> <a href="#v:showtlPrec" class="selflink">#</a></p><p class="src"><a href="#v:showtl">showtl</a> :: <a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a> -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtl" class="link">Source</a> <a href="#v:showtl" class="selflink">#</a></p><p class="src"><a href="#v:showtlList">showtlList</a> :: [<a href="TextShow-Data-Floating.html#t:FPFormat">FPFormat</a>] -> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#t:Text">Text</a> <a href="src/TextShow-Classes.html#showtlList" class="link">Source</a> <a href="#v:showtlList" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>
|