/usr/share/doc/libghc-io-streams-doc/html/System-IO-Streams-Text.html is in libghc-io-streams-doc 1.3.4.0-1build1.
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 | <!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>System.IO.Streams.Text</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_System-IO-Streams-Text.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-IO-Streams-Text.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">io-streams-1.3.4.0: Simple, composable, and easy-to-use stream I/O</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">System.IO.Streams.Text</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Decoders and Encoders</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Stream primitives for decoding and encoding <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> values in UTF-8 format.</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:decodeUtf8">decodeUtf8</a> :: <a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>)</li><li class="src short"><a href="#v:decodeUtf8With">decodeUtf8With</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Encoding-Error.html#t:OnDecodeError">OnDecodeError</a> -> <a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>)</li><li class="src short"><a href="#v:encodeUtf8">encodeUtf8</a> :: <a href="System-IO-Streams-Internal.html#t:OutputStream">OutputStream</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-Streams-Internal.html#t:OutputStream">OutputStream</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>)</li></ul></div><div id="interface"><h1 id="g:1">Decoders and Encoders</h1><div class="top"><p class="src"><a name="v:decodeUtf8" class="def">decodeUtf8</a> :: <a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>) <a href="src/System-IO-Streams-Text.html#decodeUtf8" class="link">Source</a></p><div class="doc"><p>Decode an <code><a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a></code> of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></code>s in UTF-8 format into an
<code><a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a></code> of <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> values. If decoding fails, will throw an exception.
See <code>Data.Text.Encoding.<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Encoding.html#v:decodeUtf8">decodeUtf8</a></code></code>.</p></div></div><div class="top"><p class="src"><a name="v:decodeUtf8With" class="def">decodeUtf8With</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Encoding-Error.html#t:OnDecodeError">OnDecodeError</a> -> <a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>) <a href="src/System-IO-Streams-Text.html#decodeUtf8With" class="link">Source</a></p><div class="doc"><p>Decode an <code><a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a></code> of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></code>s in UTF-8 format into an
<code><a href="System-IO-Streams-Internal.html#t:InputStream">InputStream</a></code> of <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> values. If decoding fails, invokes the given
<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Encoding-Error.html#t:OnDecodeError">OnDecodeError</a></code> function to decide what to do. See
<code>Data.Text.Encoding.<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Encoding.html#v:decodeUtf8With">decodeUtf8With</a></code></code>.</p></div></div><div class="top"><p class="src"><a name="v:encodeUtf8" class="def">encodeUtf8</a> :: <a href="System-IO-Streams-Internal.html#t:OutputStream">OutputStream</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> (<a href="System-IO-Streams-Internal.html#t:OutputStream">OutputStream</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>) <a href="src/System-IO-Streams-Text.html#encodeUtf8" class="link">Source</a></p><div class="doc"><p>Convert an <code><a href="System-IO-Streams-Internal.html#t:OutputStream">OutputStream</a></code> taking <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></code>s to an <code><a href="System-IO-Streams-Internal.html#t:OutputStream">OutputStream</a></code> that
takes <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>, encoding the data as UTF-8. See
<code>Data.Text.Encoding.<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Encoding.html#v:encodeUtf8">encodeUtf8</a></code></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|