packages feed

Cabal-2.0.0.2: doc/API/Cabal/Distribution-Utils-ShortText.html

<!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>Distribution.Utils.ShortText</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">Cabal-2.0.0.2: A framework for packaging Haskell software</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Distribution.Utils.ShortText</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1"><code>ShortText</code> type</a></li><li><a href="#g:2">internal utilities</a></li></ul></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">data</span> <a href="#t:ShortText">ShortText</a></li><li class="src short"><a href="#v:toShortText">toShortText</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></li><li class="src short"><a href="#v:fromShortText">fromShortText</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:decodeStringUtf8">decodeStringUtf8</a> :: [<a href="Distribution-Compat-Prelude-Internal.html#t:Word8">Word8</a>] -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:encodeStringUtf8">encodeStringUtf8</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Distribution-Compat-Prelude-Internal.html#t:Word8">Word8</a>]</li></ul></div><div id="interface"><h1 id="g:1"><code><a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></code> type</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ShortText" class="def">ShortText</a> <a href="#t:ShortText" class="selflink">#</a></p><div class="doc"><p>Compact representation of short <code>Strings</code></p><p>The data is stored internally as UTF8 in an
 <code><a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/bytestring-0.10.8.2/Data-ByteString-Short.html#t:ShortByteString">ShortByteString</a></code> when compiled against <code>bytestring &gt;=
 0.10.4</code>, and otherwise the fallback is to use plain old non-compat
 '[Char]'.</p><p>Note: This type is for internal uses (such as e.g. <code>PackageName</code>)
 and shall not be exposed in Cabal's API</p><p><em>Since: 2.0.0</em></p></div><div class="subs instances"><p id="control.i:ShortText" class="caption collapser" onclick="toggleSection('i:ShortText')">Instances</p><div id="section.i:ShortText" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Eq:1" class="instance expander" onclick="toggleSection('i:id:ShortText:Eq:1')"></span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Eq:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Data:2" class="instance expander" onclick="toggleSection('i:id:ShortText:Data:2')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Data:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gfoldl">gfoldl</a> :: (<span class="keyword">forall</span> d b. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; c (d -&gt; b) -&gt; d -&gt; c b) -&gt; (<span class="keyword">forall</span> g. g -&gt; c g) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; c <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:gfoldl" class="selflink">#</a></p><p class="src"><a href="#v:gunfold">gunfold</a> :: (<span class="keyword">forall</span> b r. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> b =&gt; c (b -&gt; r) -&gt; c r) -&gt; (<span class="keyword">forall</span> r. r -&gt; c r) -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Data.html#t:Constr">Constr</a> -&gt; c <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:gunfold" class="selflink">#</a></p><p class="src"><a href="#v:toConstr">toConstr</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Data.html#t:Constr">Constr</a> <a href="#v:toConstr" class="selflink">#</a></p><p class="src"><a href="#v:dataTypeOf">dataTypeOf</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Data.html#t:DataType">DataType</a> <a href="#v:dataTypeOf" class="selflink">#</a></p><p class="src"><a href="#v:dataCast1">dataCast1</a> :: <a href="Distribution-Compat-Prelude-Internal.html#t:Typeable">Typeable</a> (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a>) t =&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; c (t d)) -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (c <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a>) <a href="#v:dataCast1" class="selflink">#</a></p><p class="src"><a href="#v:dataCast2">dataCast2</a> :: <a href="Distribution-Compat-Prelude-Internal.html#t:Typeable">Typeable</a> (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a>) t =&gt; (<span class="keyword">forall</span> d e. (<a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d, <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> e) =&gt; c (t d e)) -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (c <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a>) <a href="#v:dataCast2" class="selflink">#</a></p><p class="src"><a href="#v:gmapT">gmapT</a> :: (<span class="keyword">forall</span> b. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> b =&gt; b -&gt; b) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:gmapT" class="selflink">#</a></p><p class="src"><a href="#v:gmapQl">gmapQl</a> :: (r -&gt; r' -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; r <a href="#v:gmapQl" class="selflink">#</a></p><p class="src"><a href="#v:gmapQr">gmapQr</a> :: (r' -&gt; r -&gt; r) -&gt; r -&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; r') -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; r <a href="#v:gmapQr" class="selflink">#</a></p><p class="src"><a href="#v:gmapQ">gmapQ</a> :: (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; [u] <a href="#v:gmapQ" class="selflink">#</a></p><p class="src"><a href="#v:gmapQi">gmapQi</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Int.html#t:Int">Int</a> -&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; u) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; u <a href="#v:gmapQi" class="selflink">#</a></p><p class="src"><a href="#v:gmapM">gmapM</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; m <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:gmapM" class="selflink">#</a></p><p class="src"><a href="#v:gmapMp">gmapMp</a> :: <a href="Distribution-Compat-Prelude-Internal.html#t:MonadPlus">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; m <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:gmapMp" class="selflink">#</a></p><p class="src"><a href="#v:gmapMo">gmapMo</a> :: <a href="Distribution-Compat-Prelude-Internal.html#t:MonadPlus">MonadPlus</a> m =&gt; (<span class="keyword">forall</span> d. <a href="Distribution-Compat-Prelude-Internal.html#t:Data">Data</a> d =&gt; d -&gt; m d) -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; m <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:gmapMo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Ord:3" class="instance expander" onclick="toggleSection('i:id:ShortText:Ord:3')"></span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Ord:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:compare">compare</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Ord.html#t:Ordering">Ordering</a> <a href="#v:compare" class="selflink">#</a></p><p class="src"><a href="#v:-60-">(&lt;)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60-" class="selflink">#</a></p><p class="src"><a href="#v:-60--61-">(&lt;=)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-60--61-" class="selflink">#</a></p><p class="src"><a href="#v:-62-">(&gt;)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62-" class="selflink">#</a></p><p class="src"><a href="#v:-62--61-">(&gt;=)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-62--61-" class="selflink">#</a></p><p class="src"><a href="#v:max">max</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:max" class="selflink">#</a></p><p class="src"><a href="#v:min">min</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:min" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Read:4" class="instance expander" onclick="toggleSection('i:id:ShortText:Read:4')"></span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Text-Read.html#t:Read">Read</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Read:4" 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:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="Distribution-Compat-ReadP.html#t:ReadS">ReadS</a> [<a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a>] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</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:ShortText:Show:5" class="instance expander" onclick="toggleSection('i:id:ShortText:Show:5')"></span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Text-Show.html#t:Show">Show</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Show:5" 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:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.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="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.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="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a>] -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:IsString:6" class="instance expander" onclick="toggleSection('i:id:ShortText:IsString:6')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:IsString">IsString</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:IsString:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:fromString" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Generic:7" class="instance expander" onclick="toggleSection('i:id:ShortText:Generic:7')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Generic">Generic</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Generic:7" class="inst-details hide"><div class="subs associated-types"><p class="caption">Associated Types</p><p class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> <a href="#t:Rep" class="selflink">#</a></p></div> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:from">from</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> x <a href="#v:from" class="selflink">#</a></p><p class="src"><a href="#v:to">to</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> x -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:to" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Semigroup:8" class="instance expander" onclick="toggleSection('i:id:ShortText:Semigroup:8')"></span> <a href="Distribution-Compat-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Semigroup:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-60--62-">(&lt;&gt;)</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:-60--62-" class="selflink">#</a></p><p class="src"><a href="#v:sconcat">sconcat</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-List-NonEmpty.html#t:NonEmpty">NonEmpty</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:sconcat" class="selflink">#</a></p><p class="src"><a href="#v:stimes">stimes</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Prelude.html#t:Integral">Integral</a> b =&gt; b -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:stimes" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Monoid:9" class="instance expander" onclick="toggleSection('i:id:ShortText:Monoid:9')"></span> <a href="Distribution-Compat-Semigroup.html#t:Monoid">Monoid</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Monoid:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a>] -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Binary:10" class="instance expander" onclick="toggleSection('i:id:ShortText:Binary:10')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:Binary">Binary</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Binary:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:put">put</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:put" class="selflink">#</a></p><p class="src"><a href="#v:get">get</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/binary-0.8.5.1/Data-Binary-Get-Internal.html#t:Get">Get</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:get" class="selflink">#</a></p><p class="src"><a href="#v:putList">putList</a> :: [<a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a>] -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/binary-0.8.5.1/Data-Binary-Put.html#t:Put">Put</a> <a href="#v:putList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:NFData:11" class="instance expander" onclick="toggleSection('i:id:ShortText:NFData:11')"></span> <a href="Distribution-Compat-Prelude-Internal.html#t:NFData">NFData</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:NFData:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:rnf">rnf</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; () <a href="#v:rnf" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:ShortText:Rep:12" class="instance expander" onclick="toggleSection('i:id:ShortText:Rep:12')"></span> <span class="keyword">type</span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></span> <a href="#t:ShortText" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:ShortText:Rep:12" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:Rep">Rep</a> <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> = <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:D1">D1</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:MetaData">MetaData</a> &quot;ShortText&quot; &quot;Distribution.Utils.ShortText&quot; &quot;Cabal-2.0.0.2-48TVI32Hgv71FS4sRlskN&quot; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#v:True">True</a>) (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:C1">C1</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:MetaCons">MetaCons</a> &quot;ST&quot; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:PrefixI">PrefixI</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Bool.html#v:True">True</a>) (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:S1">S1</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:MetaSel">MetaSel</a> (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Maybe.html#v:Just">Just</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-TypeLits.html#t:Symbol">Symbol</a> &quot;unST&quot;) <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:NoSourceUnpackedness">NoSourceUnpackedness</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:NoSourceStrictness">NoSourceStrictness</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#v:DecidedLazy">DecidedLazy</a>) (<a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/GHC-Generics.html#t:Rec0">Rec0</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-Kind.html#t:-42-">*</a> <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/bytestring-0.10.8.2/Data-ByteString-Short.html#t:ShortByteString">ShortByteString</a>)))</div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:toShortText" class="def">toShortText</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> <a href="#v:toShortText" class="selflink">#</a></p><div class="doc"><p>Construct <code><a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></code> from <code><a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a></code></p></div></div><div class="top"><p class="src"><a id="v:fromShortText" class="def">fromShortText</a> :: <a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a> -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> <a href="#v:fromShortText" class="selflink">#</a></p><div class="doc"><p>Convert <code><a href="Distribution-Utils-ShortText.html#t:ShortText">ShortText</a></code> to <code><a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a></code></p></div></div><h1 id="g:2">internal utilities</h1><div class="top"><p class="src"><a id="v:decodeStringUtf8" class="def">decodeStringUtf8</a> :: [<a href="Distribution-Compat-Prelude-Internal.html#t:Word8">Word8</a>] -&gt; <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> <a href="#v:decodeStringUtf8" class="selflink">#</a></p><div class="doc"><p>Decode <code><a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a></code> from UTF8-encoded octets.</p><p>Invalid data will be decoded as the replacement character (<code>U+FFFD</code>)</p><p>See also <code><a href="Distribution-Utils-ShortText.html#v:encodeStringUtf8">encodeStringUtf8</a></code></p></div></div><div class="top"><p class="src"><a id="v:encodeStringUtf8" class="def">encodeStringUtf8</a> :: <a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Distribution-Compat-Prelude-Internal.html#t:Word8">Word8</a>] <a href="#v:encodeStringUtf8" class="selflink">#</a></p><div class="doc"><p>Encode <code><a href="file:///opt/ghc/8.2.1/share/doc/ghc-8.2.1/html/libraries/base-4.10.0.0/Data-String.html#t:String">String</a></code> to a list of UTF8-encoded octets</p><p>See also <code>decodeUtf8</code></p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.18.1</p></div></body></html>