[Haskell-beginners] User-defined polymorphic data type: heterogeneous list?

Ertugrul Soeylemez es at ertes.de
Wed Jul 13 00:32:10 CEST 2011


David McBride <dmcbride at neondsl.com> wrote:

> myList :: MyClass a => [a]
> myList = [somefunction True, somefunction False]

This is not a heterogenous list.  The list elements would still have to
have the same type.


Greets,
Ertugrul


-- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/





More information about the Beginners mailing list