On Jul 23, 2008, at 15:55, Marco Túlio Gontijo e Silva wrote: > Hello, > > the function inputAdd uses type FD which is defined in > System.Glib.MainLoop, but not exported. So when I define a function > with a parameter that is passed to the first parameter of inputAdd, I > can't add it's type signature, as inferred by GHCi. Shouldn't the > module export this type?
Yes, probably. You can type your function by simply using Int since FD is simply defined to be Int. Fixing this is a bit more involved I think. I just looked at the API and there seem to be different functions for Windows and Unix. I think somebody has to sit down and understand it all and make some design decisions that the Haskell API appears as uniform across platforms as possible. Axel. > Greetings. > > -- > Marco Túlio Gontijo e Silva > Página: http://marcotmarcot.googlepages.com/ > Blog: http://marcotmarcot.blogspot.com/ > Correio: [EMAIL PROTECTED] > XMPP: [EMAIL PROTECTED] > IRC: [EMAIL PROTECTED] > Telefone: 25151920 > Celular: 98116720 > Endereço: > Rua Turfa, 639/701 > Prado 30410-370 > Belo Horizonte/MG Brasil > > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gtk2hs-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gtk2hs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
