[Haskell-cafe] "back doors" into the IO monad

Nicolas Pouillard nicolas.pouillard at gmail.com
Sun Oct 24 10:22:03 EDT 2010

On Sun, 24 Oct 2010 00:28:37 +0200, Manlio Perillo <manlio_perillo at 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.

Nicolas Pouillard

More information about the Haskell-Cafe mailing list