[Haskell-cafe] mixing wxhaskell state and file io
martindemello at gmail.com
Mon Feb 5 09:49:21 EST 2007
On 2/5/07, Martin DeMello <martindemello at gmail.com> wrote:
> On 2/5/07, Matthew Brecknell <haskell at brecknell.org> wrote:
> > This is probably what you wanted (untested):
> > w <- readWords "words"
> > words <- varCreate w
> That didn't work, because (as someone on #haskell explained to me)
> readWords has type IO and the wx actions have type Layout
Okay, I was probably doing something else wrong, because I just tried
this again (after changing some other code) and it worked perfectly.
More information about the Haskell-Cafe