Safe Haskell | Safe-Inferred |
---|

# Documentation

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 IntegerSource

Overloaded `cCount`

. Doesn't attempt to reduce the dummy value given.

allValues :: Countable a => [a]Source

Overloaded `allValuesFor`

.