<div class="gmail_quote">On Thu, Oct 20, 2011 at 5:19 AM, Captain Freako <span dir="ltr">&lt;<a href="mailto:capn.freako@gmail.com">capn.freako@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David,<br>
<br>
I was referring to the `f&#39; in the `runAuto&#39; function, not the `liftAu&#39; function.<br>
<br>
-db<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>Ah, I see. You quoted one thing and spoke of another, and I got all confused. Keep in mind that functions are arrows (instance Arrow (-&gt;)). </div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">&gt; type FilterAu b c = Automaton (-&gt;) b c<br></span></div><div>&gt; runAuto :: FilterAu b c -&gt; [b] -&gt; [c]</div>
<div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">&gt; runAuto a             []     = []<br>&gt; runAuto (Automaton f) (x:xs) = let<br>
&gt;   (y,a) = f x<br>&gt;   in y:runAuto a xs</span></div></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><br>
</div></div>