This is not a question about GHC, not even about Haskell.

A standard example in OO is a container of objects (values) of type
FIGURE. It can hold also objects of subclass of FIGURE, like
Polygon and Circle. Iterating over the container one can call e.g.
obj.draw() an operation common to all figures. A central idea is
of course that of extensibilty, i.e. defining new subclasses of FIGURE
without changing any of the code handling the container.

How would one implement something like this in a pure, lazy functional
style (in Haskell)?

Regards

-- 
G�rard Milmeister <[EMAIL PROTECTED]>
Tannenrauchstrasse 35
8038 Z�rich
Switzerland
+41 1 481 52 48


PGP signature

Reply via email to