[Haskell-beginners] Heterogeneous Lists

Magnus Therning magnus at therning.org
Tue May 28 10:04:14 CEST 2013

On Tue, May 28, 2013 at 9:36 AM, harry <voldermort at hotmail.com> wrote:
> Every OO language which supports generics allows a declaration such as
> List<Show> alist, where Show is an interface. Any type implementing Show can
> be put in alist, and any Show operation can be performed on the alist's
> members. No casts, wrappers, or other special types and plumbing are needed.
> Why isn't it possible to do this directly in Haskell?

Just to make sure... I guess you've already read
http://www.haskell.org/haskellwiki/Heterogenous_collections right?


Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

More information about the Beginners mailing list