Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6e7b8b29c9973053a0fbeb2899ecd9cb > files > 82

ghc-mtl-devel-2.0.1.0-8.fc15.i686.rpm

<!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.Monad.Identity</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-Monad-Identity.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Monad-Identity.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">mtl-2.0.1.0: Monad classes, using functional dependencies</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr></table><p class="caption">Control.Monad.Identity</p></div><div id="description"><p class="caption">Description</p><div class="doc"><dl><dt>Computation type:</dt><dd> Simple function application.
</dd><dt>Binding strategy:</dt><dd> The bound function is applied to the input value.
<code><code><a href="/usr/share/doc/ghc/html/libraries/transformers-0.2.2.0/Data-Functor-Identity.html#t:Identity">Identity</a></code> x &gt;&gt;= f == <code><a href="/usr/share/doc/ghc/html/libraries/transformers-0.2.2.0/Data-Functor-Identity.html#t:Identity">Identity</a></code> (f x)</code>
</dd><dt>Useful for:</dt><dd> Monads can be derived from monad transformers applied to the
<code><a href="/usr/share/doc/ghc/html/libraries/transformers-0.2.2.0/Data-Functor-Identity.html#t:Identity">Identity</a></code> monad.
</dd><dt>Zero and plus:</dt><dd> None.
</dd><dt>Example type:</dt><dd> <code><code><a href="/usr/share/doc/ghc/html/libraries/transformers-0.2.2.0/Data-Functor-Identity.html#t:Identity">Identity</a></code> a</code>
</dd></dl><p>The <code>Identity</code> monad is a monad that does not embody any computational strategy.
It simply applies the bound function to its input without any modification.
Computationally, there is no reason to use the <code>Identity</code> monad
instead of the much simpler act of simply applying functions to their arguments.
The purpose of the <code>Identity</code> monad is its fundamental role in the theory
of monad transformers.
Any monad transformer applied to the <code>Identity</code> monad yields a non-transformer
version of that monad.
</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/transformers-0.2.2.0/Data-Functor-Identity.html">Data.Functor.Identity</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html">Control.Monad</a></p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad-Fix.html">Control.Monad.Fix</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>