
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? Or how can I transform IO a to a? regards seb

[Sebastian Schulz
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? Or how can I transform IO a to a?
it's called "unsafePerformIO", but i'm forced to ask: are you really sure it's what you want? ;) what are you trying to do? matt -- matt hellige matt@immute.net http://matt.immute.net

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
participants (3)
-
matt hellige
-
Sebastian Schulz
-
Tom Pledger