See this thread: <a href="http://www.haskell.org/pipermail/haskell-cafe/2010-October/084291.html">http://www.haskell.org/pipermail/haskell-cafe/2010-October/084291.html</a><br><br><div class="gmail_quote">On 14 March 2011 15:48, tsuraan <span dir="ltr">&lt;<a href="mailto:tsuraan@gmail.com">tsuraan@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;">In my code, I&#39;m doing this quite a lot:<br>
<br>
x &lt;- someIO<br>
case x of<br>
  Opt1 -&gt; ...<br>
<br>
Having a line for extracting the value from the IO (or STM) and then<br>
acting on the value seems unnatural.  Is there a more concise way to<br>
do this?  This code:<br>
<br>
case someIO of<br>
  Opt1 -&gt; ...<br>
<br>
Doesn&#39;t work, but is there something like that, that is valid?<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ozgur Akgun<br>