See this thread:
http://www.haskell.org/pipermail/haskell-cafe/2010-October/084291.html

On 14 March 2011 15:48, tsuraan <tsur...@gmail.com> wrote:

> In my code, I'm doing this quite a lot:
>
> x <- someIO
> case x of
>  Opt1 -> ...
>
> Having a line for extracting the value from the IO (or STM) and then
> acting on the value seems unnatural.  Is there a more concise way to
> do this?  This code:
>
> case someIO of
>  Opt1 -> ...
>
> Doesn't work, but is there something like that, that is valid?
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Ozgur Akgun
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to