Contents
- Alternative <Supertype, Subtype>
- Deriving
- Applicative <Supertype, Subtype>
- Deriving
- Choice <Supertype, Subtype>
- Deriving
- Cofunctor <Supertype, Subtype>
- Deriving
- Decidable <Supertype, Subtype>
- Deriving
- Divisible <Supertype, Subtype>
- Deriving
- Fallible <E, Supertype, Subtype>
- Fallible <Supertype, Subtype>
- Deriving
- Final <Supertype, Subtype>
- Deriving
- Foldable <Supertype, Subtype>
- Deriving
- Functor <Supertype, Subtype>
- Deriving
- Monad <Supertype, Subtype>
- Deriving
- MonadIO <Supertype, Subtype>
- Deriving
- MonadT <Supertype, out M, Subtype>
- Deriving
- MonoidK <Supertype, Subtype>
- Deriving
- Readable <Supertype, Env, Subtype>
- Deriving
- SemigroupK <Supertype, Subtype>
- Deriving
- Stateful <Supertype, Subtype, S>
- Deriving
- Traversable <Supertype, Subtype>
- Deriving
- Writable <Supertype, Subtype, W>
- Deriving
interface Alternative <Supertype, Subtype> Source #
interface Applicative <Supertype, Subtype> Source #
Derived applicative functor implementation
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Subtype | The subtype that the supertype type 'wraps' |
interface Choice <Supertype, Subtype> Source #
A semigroup on applicative functors
interface Cofunctor <Supertype, Subtype> Source #
Derive the class of contravariant functors.
Whereas one can think of a Functor
as containing or producing values, a contravariant functor is a functor that
can be thought of as consuming values.
Contravariant functors are referred to colloquially as Cofunctor, even though the dual of a Functor
is just
a Functor
.
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Subtype | The subtype that the supertype type 'wraps' |
interface Decidable <Supertype, Subtype> Source #
Derive a Decidable
contravariant functor that is the contravariant analogue of Alternative
.
Noting the superclass constraint that f
must also be Divisible
, a Decidable
functor has the ability to
"fan out" input, under the intuition that contravariant functors consume input.
Parameters
type | F | Self referring type |
interface Divisible <Supertype, Subtype> Source #
interface Fallible <E, Supertype, Subtype> Source #
Trait for higher-kinded structures that have a failure state E
interface Fallible <Supertype, Subtype> Source #
Trait for higher-kinded structures that have a failure state E
interface Final <Supertype, Subtype> Source #
Derives finally
in a try/finally
operation
interface Foldable <Supertype, Subtype> Source #
interface Functor <Supertype, Subtype> Source #
Derived functor implementation
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Subtype | The subtype that the supertype type 'wraps' |
interface Monad <Supertype, Subtype> Source #
Derived monad implementation
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Subtype | The subtype that the supertype type 'wraps' |
interface MonadIO <Supertype, Subtype> Source #
Derived MonadIO
implementation
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Subtype | The subtype that the supertype type 'wraps' |
interface MonadT <Supertype, out M, Subtype> Source #
Derived monad-transformer implementation
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Subtype | The subtype that the supertype type 'wraps' |
interface MonoidK <Supertype, Subtype> Source #
A monoid for higher-kinds
Parameters
type | M | Higher kind |
interface Readable <Supertype, Env, Subtype> Source #
Derived Readable
implementation
Parameters
type | Supertype | Super-type wrapper around the subtype |
type | Env | Reader environment |
type | Subtype | The subtype that the supertype type 'wraps' |
interface SemigroupK <Supertype, Subtype> Source #
Derived equivalent of semigroups for working with higher-kinded types
interface Stateful <Supertype, Subtype, S> Source #
interface Traversable <Supertype, Subtype> Source #
Functors representing data structures that can be transformed to structures of the same
shape by performing an Applicative
(or, therefore, Monad
) action on each element from
left to right.
A more detailed description of what same shape means, the various methods, how traversals are constructed, and example advanced use-cases can be found in the Overview section of Data.Traversable.