
7 Jan
2011
7 Jan
'11
4:09 p.m.
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.