[Haskell-cafe] Newbie type question for wxHaskell learner

b1g3ar5 nick.straw at gmail.com
Fri Jan 7 17:09:11 CET 2011


I've tried to solve this but I am failing.

I can do this:

p0<-panel nb []
e0<-textCtrl p [text:=my_list!!0]

but I want to do this on all of my_list, so I tried:

let es = map (\x-> textCtrl (panel nb []) [text:=x]) my_list

Now, this won't work because the panel nb [] is IO (Panel()) and the
parameter to textCtrl needs to be a Panel()

How do I get out of IO?

Thanks.



More information about the Haskell-Cafe mailing list