[Haskell-beginners] basic data types

Brandon Allbery allbery.b at gmail.com
Fri Dec 30 12:50:11 CET 2011


2011/12/30 Stanisław Findeisen <stf-list at eisenbits.com>

> What is the difference between, e.g., Bounded Bool and Enum Bool?


There is only one Bool type; it is an instance of multiple typeclasses.
 So, for example, it is a Bounded (meaning that there are "minBound" and
"maxBound" values associated with it) and an Enum (meaning that there are
"predecessor" and "successor" functions associated with it).

Look at the definitions of the indicated classes to see what they mean.

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111230/34adc8c9/attachment.htm>


More information about the Beginners mailing list