<br><br><div class="gmail_quote">On Thu, Aug 20, 2009 at 2:52 AM, Jules Bean <span dir="ltr">&lt;<a href="mailto:jules@jellybean.co.uk">jules@jellybean.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Peter Verswyvelen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not at all, use it for whatever you want to :-)<br>
<br>
I&#39;m writing this code because I&#39;m preparing to write a bunch of tutorials on FRP, and I first wanted to start with simple console based FRP, e.g. making a little text adventure game, where the input/choices of the user might be parsed ala parsec, using monadic style, applicative style, and arrows, and then doing the same with FRP frameworks like <br>

</blockquote>
<br>
<br></div>
This is a really bad place to start a FRP tutorial IMO.<br>
<br>
The interface for &#39;interact&#39; does not make any promises about the relative evaluation order of the input list / production order of the output list.<br>
<br>
That&#39;s why you are having to play horrible tricks with seq to try to force the order to be what you want.<br>
<br>
I don&#39;t think this is the basis of a robust system or a sensible tutorial.<br>
<br>
Just my 2c.<br>
</blockquote></div><br><div>Interesting feedback, but I don&#39;t get the reason really.  How is using seq a &quot;horrible trick&quot;?  It&#39;s there for strict evaluation when you need it, and in this case it was warranted.</div>
<div><br></div><div>And as far as saying it&#39;s not a good basis for a robust system, I&#39;m also not sure I agree, but a &quot;sensible tutorial&quot;, that I could believe as I think it&#39;s actually quite difficult to explain these topics to people in a way they&#39;re going to understand right away.  </div>
<div><br></div><div>Could we perhaps bother you to suggest an alternative along with your criticism?  It would feel a little more constructive at least (not that I think you were being terribly harsh)</div><div><br></div>
<div>Dave</div>