/usr/share/doc/libghc-io-choice-doc/html/Control-Exception-IOChoice-TH.html is in libghc-io-choice-doc 0.0.5-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 12 13 14 15 16 | <!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>Control.Exception.IOChoice.TH</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_Control-Exception-IOChoice-TH.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Exception-IOChoice-TH.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-choice-0.0.5: Choice for IO and lifted IO</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Control.Exception.IOChoice.TH</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This package provides a function to generate a choice operator
in IO monad by specifying exceptions to be caught.
</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:newIOChoice">newIOChoice</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Name">Name</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Lib.html#t:ExpQ">ExpQ</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:newIOChoice" class="def">newIOChoice</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Syntax.html#t:Name">Name</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.8.0.0/Language-Haskell-TH-Lib.html#t:ExpQ">ExpQ</a><a href="src/Control-Exception-IOChoice-TH.html#newIOChoice" class="link">Source</a></p><div class="doc"><p>A function to generate a choice operator in IO monad.
<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:IOException">IOException</a></code> is automatically added to specified exceptions.
So, <code><a href="Control-Exception-IOChoice.html#t:goNext">goNext</a></code> can be used with
the new operator.
</p><pre> {-# LANGUAGE TemplateHaskell #-}
import Control.Exception
import Control.Exception.IOChoice.TH
(||>>) :: IO a -> IO a -> IO a
(||>>) = $(newIOChoice [''ErrorCall, ''ArithException])
</pre></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|