Re: [Haskell-cafe] more gtk help

2013-08-13 Thread Brandon Allbery
On Tue, Aug 13, 2013 at 10:45 PM, 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 >(GHC.Ptr.Ptr

Re: [Haskell-cafe] more gtk help

2013-08-13 Thread briand
On Mon, 12 Aug 2013 14:50:43 +0100 Claude Heiland-Allen 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 exposeEvent

Re: [Haskell-cafe] more gtk help

2013-08-12 Thread Claude Heiland-Allen
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 (Connec