On Sun, Oct 24, 2010 at 10:22 AM, Nicolas Pouillard
<nicolas.pouill...@gmail.com> wrote:
> On Sun, 24 Oct 2010 00:28:37 +0200, Manlio Perillo <manlio_peri...@libero.it> 
> wrote:
>> Hi.
>>
>> What are the available methods to execute IO actions from pure code?
>>
>> I know only unsafePerformIO and foreign import (to call a non pure
>> foreign function).
>
> unsafeCoerce is a back door for almost everything.
>

The mueval tests also include this fun example: 'runST (unsafeIOToST
(readFile "/etc/passwd"))'

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

Reply via email to