@hackage / gtk2hs-cast-gtk

A type class for cast functions of Gtk2hs: gtk package

Latest0.10.1.2

About

Metadata

  • Last updated , by MarcoSilva
  • License LicenseRef-OtherLicense
  • Categories GUI
  • Maintained by: Marco Túlio Gontijo e Silva <marcot@holoscopio.com>

  • Lottery factor: 0

Links

Installation

Readme

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 gtk package of gtk2hs-cast, which contains the instances of Cast for the types in the gtk package from gtk2hs.