Em Ter, 2009-05-12 às 15:27 -0300, Maurício escreveu:
> >>> class Cast widget where
> >>>   cast :: GObjectClass obj => obj -> widget
> >>> instance Cast Window where
> >>>   cast = castToWindow
> >>> (...)
> 
> > (...) Unless you have a
> > very good example where the Cast class would be simpler than a castToFoo
> > function, I'd rather not add yet another layer of type classes.
> 
> My package 'gtk2hs-rpn' would use that. Since it's a RPN
> calculator for widgets, it uses a stack (list, actually)
> of widgets, casted at runtime. I do that using a CanBeCasted
> module inside the package.

Good to know you'd use it.  I'm planning to work on a module gtk2hs-cast
with this Cast class.  I'm announce it here when it's ready.

Greetings.

-- 
marcot
http://marcot.iaaeee.org/



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to