Description
Countable, Searchable, Finite, Empty classes.
Description
class Countable
, for countable typesclass AtLeastOneCountable
, for countable types that have at least one valueclass InfiniteCountable
, for infinite countable typesclass Searchable
, for types that can be searched over. This turns out to include some infinite types, see http://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/.class Finite
, for finite typesclass Singular
, for singular (n = 1) typesclass Empty
, for empty (n = 0) types
Some orphan instances (in their own modules):
(Searchable a,Eq b) => Eq (a -> b)
Finite t => Foldable ((->) t)
Finite a => Traversable ((->) a)
(Show a,Finite a,Show b) => Show (a -> b)