
13 Dec
2010
13 Dec
'10
7:44 p.m.
On Mon, 13 Dec 2010 18:49:39 +0100, Patrick LeBoutillier
Hi,
I'm looking for a function to make a list of all the constructors in a type that derives both Enum and Bounded, i.e.
enumAll :: (Bounded a, Enum a) => [a] enumAll = [minBound .. maxBound]
Does this function exists in the standard modules?
Patrick
No Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html --