Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
class Countable a where Source
Class and instances for producing Counter
s by type.
Countable Bool | |
Countable Char | |
Countable Int | |
Countable Int8 | |
Countable Int16 | |
Countable Int32 | |
Countable Int64 | |
Countable Integer | |
Countable () | |
Countable a => Countable [a] | |
Countable a => Countable (Maybe a) | |
(Countable a, Countable b) => Countable (Either a b) | |
(Countable a, Countable b) => Countable (a, b) | |
(Countable a, Countable b, Countable c) => Countable (a, b, c) | |
(Countable a, Countable b, Countable c, Countable d) => Countable (a, b, c, d) |
count :: Countable a => a -> Maybe Integer Source
Overloaded cCount
. Doesn't attempt to reduce the dummy value given.
allValues :: Countable a => [a] Source
Overloaded allValuesFor
.