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


_______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to