performUnsafeIO

Tom Pledger [email protected]
Fri, 12 Oct 2001 08:02:45 +1300


Sebastian Schulz writes:
 | hi.
 | 
 | I need to extract an IO String to String.
 | Remembering some function like 'performUnsafeIO :: IO a -> a', I
 | searched the hugs libs, but without a match.
 | 
 | Does a function like this still exists?

It (unsafePerformIO) still exists.

 | Or how can I transform IO a to a?

There's a safer way:

    http://haskell.org/wiki/wiki?ThatAnnoyingIoType