 
            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 -- ===================== Patrick LeBoutillier Rosemère, Québec, Canada
 
            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 --
participants (2)
- 
                 Henk-Jan van Tuyl Henk-Jan van Tuyl
- 
                 Patrick LeBoutillier Patrick LeBoutillier