But I still have to use IORef this way.<br><br><br><div class="gmail_quote">On Thu, Apr 3, 2008 at 7:08 PM, Alfonso Acosta &lt;<a href="mailto:alfonso.acosta@gmail.com">alfonso.acosta@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">&gt; type MyState a = StateT FilePath IO a<br>
<br>
<br>
<br>
</div><div class="Ih2E3d">&gt; Is there any way in which I can do without IORef in tabHandler and<br>
&gt; commandLoop (written in red and bold, if you can see)?<br>
<br>
</div>How about keeping the IORef but storing it inside the state?<br>
<br>
type MySate a = StateT (IORef FilePath) IO a<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jinwoo Lee<br>Always remember that you are unique. Just like everyone else.