Fudgets
Christian Buschmann
christian@snowblack.de
Sun, 08 Jun 2003 18:22:06 +0200
Hi!
Is there any easy way to display an IO String with Fudgets?
I know how to display a String:
import Fudgets
main :: IO ()
main = fudlogue (shellF "Prog" showMe)
showMe = ("Hello " `labLeftOfF` displayF) >==<
mapF getString >==< (buttonF "ClickMe!")
getString :: Click -> String
getString Click = "World!"
But if I change the getString-function to:
getString :: Click -> IO String
getString Click = return "World!" --or any other kind of function
which returns an IO String
I get an error message. Is there any way, without using unsafePerformIO,
to display my IO String?
thanks
Christian Buschmann