@hackage gtk2hs-cast-th0.10.1.0
A type class for cast functions of Gtk2hs: TH package
Categories
License
LicenseRef-OtherLicense
Maintainer
Marco Túlio Gontijo e Silva <marcot@holoscopio.com>
Links
Versions
- 0.10.1.0 Sun, 31 May 2009
Installation
Dependencies (3)
Dependents (5)
@hackage/gtk2hs-cast-gtk, @hackage/acme-everything, @hackage/gtk2hs-cast-gtkglext, @hackage/gtk2hs-cast-gtksourceview2, @hackage/gtk2hs-cast-gnomevfs
This package contains a type class called Cast with a function cast, that is a wrapper for all the castTo* functions of gtk2hs. It makes it easier to write other functions that require a castTo* as a parameter, like xmlGetWidget from glade. The main utility of these packages is to use xmlGetWidgetCast, a version of xmlGetWidget defined in gtk2hs-cast-glade, which has the type: xmlGetWidgetCast :: (Cast widget, WidgetClass widget) => GladeXML -> String -> IO widget.
This is the Template Haskell package of gtk2hs-cast, it includes a template for generating a module with instances of the Cast class, defined at gtk2hs-cast-glib.