[Haskell-beginners] Heterogeneous Lists

harry voldermort at hotmail.com
Tue May 28 09:36:13 CEST 2013


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?




More information about the Beginners mailing list