countable-0.2: Countable, Searchable, Finite, Empty classes

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Searchable

Description

This module also includes these orphan instances:

Synopsis

Documentation

forsome :: Searchable a => (a -> Bool) -> Bool Source

forevery :: Searchable a => (a -> Bool) -> Bool Source

class (Searchable a, Countable a) => Finite a where Source

Minimal complete definition

allValues

Methods

allValues :: [a] Source

Not necessarily in counting order.

assemble :: Applicative f => (a -> f b) -> f (a -> b) Source

finiteSearch :: Finite a => (a -> Maybe b) -> Maybe b Source