This file is indexed.

/usr/share/doc/libghc-hsh-doc/html/HSH-Channel.html is in libghc-hsh-doc 2.1.2-7build3.

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
<!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>HSH.Channel</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_HSH-Channel.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/HSH-Channel.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">HSH-2.1.2: Library to mix shell scripting with Haskell programs</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>Copyright (C) 2006-2009 John Goerzen</td></tr><tr><th>License</th><td>GNU LGPL, version 2.1 or above</td></tr><tr><th>Maintainer</th><td>John Goerzen &lt;jgoerzen@complete.org&gt;</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">HSH.Channel</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Copyright (c) 2006-2009 John Goerzen, jgoerzen@complete.org</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">data</span> <a href="#t:Channel">Channel</a><ul class="subs"><li>= <a href="#v:ChanString">ChanString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:ChanBSL">ChanBSL</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li>| <a href="#v:ChanHandle">ChanHandle</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></li></ul></li><li class="src short"><a href="#v:chanAsString">chanAsString</a> :: <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:chanAsBSL">chanAsBSL</a> :: <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:chanAsBS">chanAsBS</a> :: <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:chanToHandle">chanToHandle</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><span class="keyword">class</span> <a href="#t:Channelizable">Channelizable</a> a <span class="keyword">where</span><ul class="subs"></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Channel" class="def">Channel</a> <a href="src/HSH-Channel.html#Channel" class="link">Source</a> <a href="#t:Channel" class="selflink">#</a></p><div class="doc"><p>The main type for communicating between commands.  All are expected to
be lazy. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ChanString" class="def">ChanString</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ChanBSL" class="def">ChanBSL</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ChanHandle" class="def">ChanHandle</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Channel" class="caption collapser" onclick="toggleSection('i:Channel')">Instances</p><div id="section.i:Channel" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Channel:ShellCommand:1" class="instance expander" onclick="toggleSection('i:id:Channel:ShellCommand:1')"></span> <a href="HSH-Command.html#t:ShellCommand">ShellCommand</a> (<a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="HSH-Channel.html#t:Channel">Channel</a>)</span> <a href="src/HSH-Command.html#line-201" class="link">Source</a> <a href="#t:ShellCommand" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Channel:ShellCommand:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fdInvoke">fdInvoke</a> :: (<a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="HSH-Channel.html#t:Channel">Channel</a>) -&gt; <a href="HSH-Command.html#t:Environment">Environment</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="HSH-Channel.html#t:Channel">Channel</a>, [<a href="HSH-Command.html#t:InvokeResult">InvokeResult</a>]) <a href="src/HSH-Command.html#fdInvoke" class="link">Source</a> <a href="#v:fdInvoke" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:chanAsString" class="def">chanAsString</a> :: <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</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="src/HSH-Channel.html#chanAsString" class="link">Source</a> <a href="#v:chanAsString" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:chanAsBSL" class="def">chanAsBSL</a> :: <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="src/HSH-Channel.html#chanAsBSL" class="link">Source</a> <a href="#v:chanAsBSL" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:chanAsBS" class="def">chanAsBS</a> :: <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/HSH-Channel.html#chanAsBS" class="link">Source</a> <a href="#v:chanAsBS" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:chanToHandle" class="def">chanToHandle</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/HSH-Channel.html#chanToHandle" class="link">Source</a> <a href="#v:chanToHandle" class="selflink">#</a></p><div class="doc"><p>Writes the Channel to the given Handle. If the first parameter is True,
     do this in a separate thread and close the handle afterwards.</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Channelizable" class="def">Channelizable</a> a <span class="keyword">where</span> <a href="src/HSH-Channel.html#Channelizable" class="link">Source</a> <a href="#t:Channelizable" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="HSH-Channel.html#v:toChannel">toChannel</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toChannel" class="def">toChannel</a> :: a -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> <a href="src/HSH-Channel.html#toChannel" class="link">Source</a> <a href="#v:toChannel" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:Channelizable" class="caption collapser" onclick="toggleSection('i:Channelizable')">Instances</p><div id="section.i:Channelizable" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Channelizable:Channelizable:1" class="instance expander" onclick="toggleSection('i:ic:Channelizable:Channelizable:1')"></span> <a href="HSH-Channel.html#t:Channelizable">Channelizable</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></span> <a href="src/HSH-Channel.html#line-68" class="link">Source</a> <a href="#t:Channelizable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Channelizable:Channelizable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toChannel">toChannel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> <a href="src/HSH-Channel.html#toChannel" class="link">Source</a> <a href="#v:toChannel" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Channelizable:Channelizable:2" class="instance expander" onclick="toggleSection('i:ic:Channelizable:Channelizable:2')"></span> <a href="HSH-Channel.html#t:Channelizable">Channelizable</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></span> <a href="src/HSH-Channel.html#line-72" class="link">Source</a> <a href="#t:Channelizable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Channelizable:Channelizable:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toChannel">toChannel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> <a href="src/HSH-Channel.html#toChannel" class="link">Source</a> <a href="#v:toChannel" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Channelizable:Channelizable:3" class="instance expander" onclick="toggleSection('i:ic:Channelizable:Channelizable:3')"></span> <a href="HSH-Channel.html#t:Channelizable">Channelizable</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></span> <a href="src/HSH-Channel.html#line-70" class="link">Source</a> <a href="#t:Channelizable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Channelizable:Channelizable:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toChannel">toChannel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> <a href="src/HSH-Channel.html#toChannel" class="link">Source</a> <a href="#v:toChannel" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Channelizable:Channelizable:4" class="instance expander" onclick="toggleSection('i:ic:Channelizable:Channelizable:4')"></span> <a href="HSH-Channel.html#t:Channelizable">Channelizable</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/HSH-Channel.html#line-74" class="link">Source</a> <a href="#t:Channelizable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:Channelizable:Channelizable:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toChannel">toChannel</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="HSH-Channel.html#t:Channel">Channel</a> <a href="src/HSH-Channel.html#toChannel" class="link">Source</a> <a href="#v:toChannel" class="selflink">#</a></p></div></div></td></tr></table></div></div></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>