[Haskell-cafe] still wrestling with io
Martin DeMello
martindemello at gmail.com
Thu Feb 8 11:37:46 EST 2007
Code here: http://zem.novylen.net/anagrid.html
I've got an instance of IO appearing unexpectedly and I can't figure
out where from. It throws up the following error:
$ ghc --make test.hs
Chasing modules from: test.hs
Compiling Main ( test.hs, test.o )
test.hs:38:15:
Couldn't match `StaticText ()' against `IO (StaticText ())'
Expected type: StaticText ()
Inferred type: IO (StaticText ())
In the application `staticText p [text := (labelText a b)]'
In the definition of `textOf':
textOf p a b = staticText p [text := (labelText a b)]
martin
More information about the Haskell-Cafe
mailing list