Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 765adc18ec52512b3512a9992c59746e > files > 47

ghc-arrows-devel-0.4.4.1-1.fc18.x86_64.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.Arrow.Transformer.Automaton</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-Arrow-Transformer-Automaton.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Arrow-Transformer-Automaton.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">arrows-0.4.4.1: Arrow classes and transformers</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable (multi-parameter type classes)</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>ross@soi.city.ac.uk</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Control.Arrow.Transformer.Automaton</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Simple Mealy-style automata.
</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">newtype</span>  <a href="#t:Automaton">Automaton</a> a b c = <a href="#v:Automaton">Automaton</a> (a b (c, <a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a b c))</li><li class="src short"><a href="#v:runAutomaton">runAutomaton</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowLoop">ArrowLoop</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowApply">ArrowApply</a> a) =&gt; <a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a (e, b) c -&gt; a (e, <a href="/usr/share/doc/ghc/html/libraries/Stream-0.4.6/Data-Stream.html#t:Stream">Stream</a> b) (<a href="/usr/share/doc/ghc/html/libraries/Stream-0.4.6/Data-Stream.html#t:Stream">Stream</a> c)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:Automaton" class="def">Automaton</a> a b c <a href="src/Control-Arrow-Transformer-Automaton.html#Automaton" class="link">Source</a></p><div class="doc"><p>An arrow type comprising Mealy-style automata, each step of which is
 is a computation in the original arrow type.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Automaton" class="def">Automaton</a> (a b (c, <a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a b c))</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Automaton" class="caption collapser" onclick="toggleSection('i:Automaton')">Instances</p><div id="section.i:Automaton" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:Arrow">Arrow</a> a =&gt; <a href="Control-Arrow-Transformer.html#t:ArrowTransformer">ArrowTransformer</a> <a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Operations.html#t:ArrowError">ArrowError</a> r a =&gt; <a href="Control-Arrow-Operations.html#t:ArrowError">ArrowError</a> r (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Operations.html#t:ArrowWriter">ArrowWriter</a> w a =&gt; <a href="Control-Arrow-Operations.html#t:ArrowWriter">ArrowWriter</a> w (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Operations.html#t:ArrowState">ArrowState</a> s a =&gt; <a href="Control-Arrow-Operations.html#t:ArrowState">ArrowState</a> s (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Operations.html#t:ArrowReader">ArrowReader</a> r a =&gt; <a href="Control-Arrow-Operations.html#t:ArrowReader">ArrowReader</a> r (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Transformer-Writer.html#t:ArrowAddWriter">ArrowAddWriter</a> w a a' =&gt; <a href="Control-Arrow-Transformer-Writer.html#t:ArrowAddWriter">ArrowAddWriter</a> w (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a) (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a')</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Transformer-Reader.html#t:ArrowAddReader">ArrowAddReader</a> r a a' =&gt; <a href="Control-Arrow-Transformer-Reader.html#t:ArrowAddReader">ArrowAddReader</a> r (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a) (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a')</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Control-Arrow-Transformer-State.html#t:ArrowAddState">ArrowAddState</a> r a a' =&gt; <a href="Control-Arrow-Transformer-State.html#t:ArrowAddState">ArrowAddState</a> r (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a) (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a')</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:Arrow">Arrow</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:Arrow">Arrow</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowZero">ArrowZero</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowZero">ArrowZero</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowPlus">ArrowPlus</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowPlus">ArrowPlus</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowChoice">ArrowChoice</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowChoice">ArrowChoice</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowLoop">ArrowLoop</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowLoop">ArrowLoop</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:Arrow">Arrow</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Category.html#t:Category">Category</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowLoop">ArrowLoop</a> a =&gt; <a href="Control-Arrow-Operations.html#t:ArrowCircuit">ArrowCircuit</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowLoop">ArrowLoop</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowApply">ArrowApply</a> a) =&gt; <a href="Control-Arrow-Transformer-Stream.html#t:ArrowAddStream">ArrowAddStream</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a) a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:Arrow">Arrow</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a b)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:Arrow">Arrow</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Applicative">Applicative</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a b)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowPlus">ArrowPlus</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Applicative.html#t:Alternative">Alternative</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a b)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowPlus">ArrowPlus</a> a =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a b c)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:runAutomaton" class="def">runAutomaton</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowLoop">ArrowLoop</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Control-Arrow.html#t:ArrowApply">ArrowApply</a> a) =&gt; <a href="Control-Arrow-Transformer-Automaton.html#t:Automaton">Automaton</a> a (e, b) c -&gt; a (e, <a href="/usr/share/doc/ghc/html/libraries/Stream-0.4.6/Data-Stream.html#t:Stream">Stream</a> b) (<a href="/usr/share/doc/ghc/html/libraries/Stream-0.4.6/Data-Stream.html#t:Stream">Stream</a> c)<a href="src/Control-Arrow-Transformer-Automaton.html#runAutomaton" class="link">Source</a></p><div class="doc"><p>Encapsulating an automaton by running it on a stream of inputs,
 obtaining a stream of outputs.
</p><p>Typical usage in arrow notation:
</p><pre>	proc p -&gt; do
		...
		ys &lt;- (|runAutomaton (\x -&gt; ...)|) xs
</pre><p>Here <code>xs</code> refers to the input stream and <code>x</code> to individual
 elements of that stream.  <code>ys</code> is bound to the output stream.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>