Typeclass Hierarchies on Gtk2Hs

10 Nov
2010
10 Nov
'10
9:02 a.m.
I'm learning Gtk2Hs, and there is an interesting pattern to the types. Each type of widget has its own typeclass, e.g. Button and ButtonClass, Window and WindowClass. Is this idiomatic Haskell? Are there other ways to achieve such a hierarchy? (OO languages support such inheritance without requiring an interface for every class.)
5350
Age (days ago)
5350
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Smith