[Haskell] IO question

Ronny Wichers Schreur ronny at cs.kun.nl
Fri Jun 11 07:46:08 EDT 2004

Tom Hofte writes (to the Haskell mailing list):

> I want to have a function that unpack an IO.
> I should have the type: IO a -> a.
> Is this possible?

Tomasz Zielonka replies:

> There is unsafePerformIO, but before you use it, think [..]

See also <http://www.haskell.org/hawiki/ThatAnnoyingIoType>.


Ronny Wichers Schreur

More information about the Haskell mailing list