On Mon, 12 Aug 2013 14:50:43 +0100
Claude Heiland-Allen cla...@mathr.co.uk wrote:
Hi Brian,
On 12/08/13 03:52, bri...@aracnet.com wrote:
...
Couldn't match expected type
...
Gtk.on Gtk.exposeEvent glCanvas $ \ _ - putStrLn foo
...
I looked up the type of Gtk.on and
On Tue, Aug 13, 2013 at 10:45 PM, bri...@aracnet.com wrote:
fooBar =
do putStrLn foo
return True
so then I thought, aha!, all I need to do is understand the type of
return True and all will be revealed to me. Well, it's this:
Control.Monad.Trans.Reader.ReaderT
Hi Brian,
On 12/08/13 03:52, bri...@aracnet.com wrote:
...
Couldn't match expected type
...
Gtk.on Gtk.exposeEvent glCanvas $ \ _ - putStrLn foo
...
I looked up the type of Gtk.on and exposeEvent :
...
on
:: object
- Signal object callback - callback - IO (ConnectId object)
after getting the entry widget events to work as i wanted, i started looking at
some other things to do, and my first attempt failed with this :
Couldn't match expected type `Gtk.Signal
(Gtk.Signal self0 (Gtk.EventM Gtk.EExpose
Bool)) (t0 - IO ())'