From: <Mar...@in...> - 2003-08-25 12:43:20
|
If your modification function is foo, then try it like this: do theString <- textCtrlGetValue -- theString will be of type String let result =3D foo theString And forget about unsafePerformIO. It's like opening the box of pandora. -- Markus Schnell Infineon Technologies AG, CPR ET Tel +49 (89) 234-20875 > -----Urspr=FCngliche Nachricht----- > Von: David [mailto:ron...@ya...]=20 > Gesendet: Sonntag, 24. August 2003 16:53 > An: wxh...@li... > Betreff: [wxhaskell-users] IO String to String >=20 >=20 > The function "textCtrlGetValue" returns a IO String. I need=20 > to modificate=20 > this string. How can i use it as a string? I mean, how can i=20 > convert an "IO=20 > a" to a simply "a"? >=20 > --=20 > Using M2, Opera's revolutionary e-mail client:=20 > http://www.opera.com/m2/ >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a=20 > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click=20 > here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users >=20 |