MonadP
Attributes
- Graph
-
- Supertypes
-
trait MonadPlus[F]trait ApplicativePlus[F]trait PlusEmpty[F]trait Plus[F]trait Monad[F]trait Bind[F]trait Applicative[F]trait InvariantApplicative[F]trait Apply[F]trait Functor[F]trait InvariantFunctor[F]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- Applicative
- Supertypes
-
trait ApplyLawtrait FunctorLawtrait InvariantFunctorLawclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Inherited from:
- Apply
- Supertypes
- Known subtypes
Attributes
- Inherited from:
- Bind
- Supertypes
-
trait ApplyLawtrait FunctorLawtrait InvariantFunctorLawclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Inherited from:
- PlusEmpty
- Supertypes
- Known subtypes
-
trait MonadPlusLawtrait StrongMonadPlusLaw
Attributes
- Inherited from:
- Functor
- Supertypes
- Known subtypes
-
trait ApplyLawtrait ApplicativeLawtrait MonadLawtrait MonadPlusLawtrait StrongMonadPlusLawtrait BindLawShow all
Attributes
- Inherited from:
- InvariantFunctor
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait FunctorLawtrait ApplyLawtrait ApplicativeLawtrait MonadLawtrait MonadPlusLawtrait StrongMonadPlusLawtrait BindLawShow all
Attributes
- Inherited from:
- Monad
- Supertypes
-
trait BindLawtrait ApplicativeLawtrait ApplyLawtrait FunctorLawtrait InvariantFunctorLawclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait MonadPlusLawtrait StrongMonadPlusLaw
Attributes
- Inherited from:
- MonadPlus
- Supertypes
-
trait MonadLawtrait BindLawtrait ApplicativeLawtrait ApplyLawtrait FunctorLawtrait InvariantFunctorLawtrait EmptyLawtrait PlusLawclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait StrongMonadPlusLaw
Attributes
- Inherited from:
- Plus
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Inherited from:
- MonadPlus
- Supertypes
-
trait MonadPlusLawtrait MonadLawtrait BindLawtrait ApplicativeLawtrait ApplyLawtrait FunctorLawtrait InvariantFunctorLawtrait EmptyLawtrait PlusLawclass Objecttrait Matchableclass AnyShow all
Value members
Abstract methods
Inherited methods
Sequence f
, then fa
, combining their results by function application.
Sequence f
, then fa
, combining their results by function application.
NB: with respect to apply2
and all other combinators, as well as scalaz.Bind, the f
action appears to the left. So f
should be the "first" F
-action to perform. This is in accordance with all other implementations of this typeclass in common use, which are "function first".
Attributes
- Definition Classes
-
Bind -> Apply
- Inherited from:
- Bind
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Flipped variant of ap
.
Flipped variant of ap
.
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Applicative
Alias for map
.
Alias for map
.
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Definition Classes
-
Bind -> Apply
- Inherited from:
- Bind
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Add a unit to any Apply to form an Applicative.
Add a unit to any Apply to form an Applicative.
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
The composition of Functor F
and Bifunctor G
, [x, y]F[G[x, y]]
, is a Bifunctor
The composition of Functor F
and Bifunctor G
, [x, y]F[G[x, y]]
, is a Bifunctor
Attributes
- Inherited from:
- Functor
Equivalent to join(map(fa)(f))
.
Equivalent to join(map(fa)(f))
.
Attributes
- Inherited from:
- Bind
The composition of ApplicativePlus F
and Applicative G
, [x]F[G[x]]
, is a ApplicativePlus
The composition of ApplicativePlus F
and Applicative G
, [x]F[G[x]]
, is a ApplicativePlus
Attributes
- Definition Classes
-
ApplicativePlus -> Applicative
- Inherited from:
- ApplicativePlus
The composition of PlusEmpty F
and G
, [x]F[G[x]]
, is a PlusEmpty
The composition of PlusEmpty F
and G
, [x]F[G[x]]
, is a PlusEmpty
Attributes
- Definition Classes
-
PlusEmpty -> Plus
- Inherited from:
- PlusEmpty
The composition of Applys F
and G
, [x]F[G[x]]
, is a Apply
The composition of Applys F
and G
, [x]F[G[x]]
, is a Apply
Attributes
- Inherited from:
- Apply
The composition of Functors F
and G
, [x]F[G[x]]
, is a Functor
The composition of Functors F
and G
, [x]F[G[x]]
, is a Functor
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- Functor
Combine fa
and fb
according to Apply[F]
with a function that discards the A
(s)
Combine fa
and fb
according to Apply[F]
with a function that discards the A
(s)
Attributes
- Inherited from:
- Apply
Combine fa
and fb
according to Apply[F]
with a function that discards the B
(s)
Combine fa
and fb
according to Apply[F]
with a function that discards the B
(s)
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- PlusEmpty
Remove f
-failing A
s in fa
, by which we mean: in the expression filter(filter(fa)(f))(g)
, g
will never be invoked for any a
where f(a)
returns false.
Remove f
-failing A
s in fa
, by which we mean: in the expression filter(filter(fa)(f))(g)
, g
will never be invoked for any a
where f(a)
returns false.
Attributes
- Inherited from:
- MonadPlus
Filter l
according to an applicative predicate.
Filter l
according to an applicative predicate.
Attributes
- Inherited from:
- Applicative
Filter l
according to an applicative predicate.
Filter l
according to an applicative predicate.
Attributes
- Inherited from:
- Applicative
Filter map
according to an applicative predicate. *
Filter map
according to an applicative predicate. *
Attributes
- Inherited from:
- Applicative
An Applicative
for F
in which effects happen in the opposite order.
An Applicative
for F
in which effects happen in the opposite order.
Attributes
- Definition Classes
-
Applicative -> Apply
- Inherited from:
- Applicative
Repeats an applicative action infinitely
Repeats an applicative action infinitely
Attributes
- Inherited from:
- Apply
Twin all A
s in fa
.
Twin all A
s in fa
.
Attributes
- Inherited from:
- Functor
Pair all A
s in fa
with the result of function application.
Pair all A
s in fa
with the result of function application.
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- Functor
The composition of Functor F and Contravariant G, [x]F[G[x]]
, is contravariant.
The composition of Functor F and Contravariant G, [x]F[G[x]]
, is contravariant.
Attributes
- Inherited from:
- Functor
if
lifted into a binding. Unlike lift3((t,c,a)=>if(t)c else a)
, this will only include context from the chosen of ifTrue
and ifFalse
, not the other.
if
lifted into a binding. Unlike lift3((t,c,a)=>if(t)c else a)
, this will only include context from the chosen of ifTrue
and ifFalse
, not the other.
Attributes
- Inherited from:
- Bind
Attributes
- Inherited from:
- InvariantFunctor
Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.
Execute an action repeatedly until its result satisfies the given predicate and return that result, discarding all others.
Attributes
- Inherited from:
- Monad
Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.
Execute an action repeatedly until its result fails to satisfy the given predicate and return that result, discarding all others.
Attributes
- Inherited from:
- Monad
Sequence the inner F
of FFA
after the outer F
, forming a single F[A]
.
Sequence the inner F
of FFA
after the outer F
, forming a single F[A]
.
Attributes
- Inherited from:
- Bind
Generalized version of Haskell's lefts
Generalized version of Haskell's lefts
Attributes
- Inherited from:
- MonadPlus
Lift f
into F
.
Lift f
into F
.
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Lift f
into F
and apply to F[A]
.
Lift f
into F
and apply to F[A]
.
Attributes
- Definition Classes
-
Monad -> Applicative -> Functor
- Inherited from:
- Monad
Lift apply(a)
, and apply the result to f
.
Lift apply(a)
, and apply the result to f
.
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- MonadPlus
Attributes
- Inherited from:
- PlusEmpty
Pair A
with the result of function application.
Pair A
with the result of function application.
Attributes
- Inherited from:
- Bind
A lawful implementation of this that is isomorphic up to the methods defined on Applicative allowing for optimised parallel implementations that would otherwise violate laws of more specific typeclasses (e.g. Monad).
A lawful implementation of this that is isomorphic up to the methods defined on Applicative allowing for optimised parallel implementations that would otherwise violate laws of more specific typeclasses (e.g. Monad).
Attributes
- Inherited from:
- Applicative
Attributes
- Inherited from:
- Plus
Semigroups can be added within an Applicative
Semigroups can be added within an Applicative
Attributes
- Inherited from:
- Applicative
Attributes
- Inherited from:
- PlusEmpty
Attributes
- Inherited from:
- Applicative
The product of MonadPlus F
and G
, [x](F[x], G[x]])
, is a MonadPlus
The product of MonadPlus F
and G
, [x](F[x], G[x]])
, is a MonadPlus
Attributes
- Inherited from:
- MonadPlus
The product of ApplicativePlus F
and G
, [x](F[x], G[x]])
, is a ApplicativePlus
The product of ApplicativePlus F
and G
, [x](F[x], G[x]])
, is a ApplicativePlus
Attributes
- Inherited from:
- ApplicativePlus
The product of PlusEmpty F
and G
, [x](F[x], G[x]])
, is a PlusEmpty
The product of PlusEmpty F
and G
, [x](F[x], G[x]])
, is a PlusEmpty
Attributes
- Inherited from:
- PlusEmpty
The product of Plus F
and G
, [x](F[x], G[x]])
, is a Plus
The product of Plus F
and G
, [x](F[x], G[x]])
, is a Plus
Attributes
- Inherited from:
- Plus
The product of Applicatives F
and G
, [x](F[x], G[x]])
, is an Applicative
The product of Applicatives F
and G
, [x](F[x], G[x]])
, is an Applicative
Attributes
- Inherited from:
- Applicative
The product of Applys F
and G
, [x](F[x], G[x]])
, is a Apply
The product of Applys F
and G
, [x](F[x], G[x]])
, is a Apply
Attributes
- Inherited from:
- Apply
The product of Functors F
and G
, [x](F[x], G[x]])
, is a Functor
The product of Functors F
and G
, [x](F[x], G[x]])
, is a Functor
Attributes
- Inherited from:
- Functor
The product of Monad F
and G
, [x](F[x], G[x]])
, is a Monad
The product of Monad F
and G
, [x](F[x], G[x]])
, is a Monad
Attributes
- Inherited from:
- Monad
The product of Bind F
and G
, [x](F[x], G[x]])
, is a Bind
The product of Bind F
and G
, [x](F[x], G[x]])
, is a Bind
Attributes
- Inherited from:
- Bind
Attributes
- Inherited from:
- Applicative
Performs the action n
times, returning the list of results.
Performs the action n
times, returning the list of results.
Attributes
- Inherited from:
- Applicative
Performs the action n
times, returning nothing.
Performs the action n
times, returning nothing.
Attributes
- Inherited from:
- Applicative
Generalized version of Haskell's rights
Generalized version of Haskell's rights
Attributes
- Inherited from:
- MonadPlus
Attributes
- Inherited from:
- Plus
Generalized version of Haskell's partitionEithers
Generalized version of Haskell's partitionEithers
Attributes
- Inherited from:
- MonadPlus
Attributes
- Inherited from:
- Applicative
Attributes
- Inherited from:
- Apply
Inject a
to the left of B
s in f
.
Inject a
to the left of B
s in f
.
Attributes
- Inherited from:
- Functor
Inject b
to the right of A
s in f
.
Inject b
to the right of A
s in f
.
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- MonadPlus
Attributes
- Inherited from:
- Applicative
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- PlusEmpty
Unfold seed
to the left and sum using plus. Plus
instances with right absorbing elements may override this method to not unfold more than is necessary to determine the result.
Unfold seed
to the left and sum using plus. Plus
instances with right absorbing elements may override this method to not unfold more than is necessary to determine the result.
Attributes
- Inherited from:
- Plus
Unfold seed
to the right and combine effects left-to-right, using the given Reducer to combine values. Implementations may override this method to not unfold more than is necessary to determine the result.
Unfold seed
to the right and combine effects left-to-right, using the given Reducer to combine values. Implementations may override this method to not unfold more than is necessary to determine the result.
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- PlusEmpty
Unfold seed
to the right and sum using plus. Plus
instances with left absorbing elements may override this method to not unfold more than is necessary to determine the result.
Unfold seed
to the right and sum using plus. Plus
instances with left absorbing elements may override this method to not unfold more than is necessary to determine the result.
Attributes
- Inherited from:
- Plus
Generalized version of Haskell's catMaybes
Generalized version of Haskell's catMaybes
Attributes
- Inherited from:
- MonadPlus
A version of unite
that infers the type constructor T
.
A version of unite
that infers the type constructor T
.
Attributes
- Inherited from:
- MonadPlus
Returns the given argument if cond
is false
, otherwise, unit lifted into F.
Returns the given argument if cond
is false
, otherwise, unit lifted into F.
Attributes
- Inherited from:
- Applicative
Execute an action repeatedly until the Boolean
condition returns true
. The condition is evaluated after the loop body. Collects results into an arbitrary MonadPlus
value, such as a List
.
Execute an action repeatedly until the Boolean
condition returns true
. The condition is evaluated after the loop body. Collects results into an arbitrary MonadPlus
value, such as a List
.
Attributes
- Inherited from:
- Monad
Execute an action repeatedly until the Boolean
condition returns true
. The condition is evaluated after the loop body. Discards results.
Execute an action repeatedly until the Boolean
condition returns true
. The condition is evaluated after the loop body. Discards results.
Attributes
- Inherited from:
- Monad
Empty fa
of meaningful pure values, preserving its structure.
Empty fa
of meaningful pure values, preserving its structure.
Attributes
- Inherited from:
- Functor
Returns the given argument if cond
is true
, otherwise, unit lifted into F.
Returns the given argument if cond
is true
, otherwise, unit lifted into F.
Attributes
- Inherited from:
- Applicative
Execute an action repeatedly as long as the given Boolean
expression returns true
. The condition is evaluated before the loop body. Collects the results into an arbitrary MonadPlus
value, such as a List
.
Execute an action repeatedly as long as the given Boolean
expression returns true
. The condition is evaluated before the loop body. Collects the results into an arbitrary MonadPlus
value, such as a List
.
Attributes
- Inherited from:
- Monad
Execute an action repeatedly as long as the given Boolean
expression returns true
. The condition is evaluated before the loop body. Discards results.
Execute an action repeatedly as long as the given Boolean
expression returns true
. The condition is evaluated before the loop body. Discards results.
Attributes
- Inherited from:
- Monad
Functors are covariant by nature, so we can treat an F[A]
as an F[B]
if A
is a subtype of B
.
Functors are covariant by nature, so we can treat an F[A]
as an F[B]
if A
is a subtype of B
.
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- InvariantApplicative
Attributes
- Inherited from:
- InvariantApplicative
Attributes
- Inherited from:
- InvariantApplicative
Attributes
- Inherited from:
- InvariantApplicative
Attributes
- Inherited from:
- InvariantApplicative
Converts ma
to a value of type F[B]
using the provided functions f
and g
.
Converts ma
to a value of type F[B]
using the provided functions f
and g
.
Attributes
- Inherited from:
- Functor
Converts ma
to a value of type F[B]
using the provided bijection.
Converts ma
to a value of type F[B]
using the provided bijection.
Attributes
- Inherited from:
- InvariantFunctor
Converts ma
to a value of type F[B]
using the provided isomorphism.
Converts ma
to a value of type F[B]
using the provided isomorphism.
Attributes
- Inherited from:
- InvariantFunctor
Attributes
- Definition Classes
-
Applicative -> InvariantApplicative
- Inherited from:
- Applicative
Attributes
- Definition Classes
-
Applicative -> InvariantApplicative
- Inherited from:
- Applicative
Attributes
- Definition Classes
-
Applicative -> InvariantApplicative
- Inherited from:
- Applicative
Attributes
- Definition Classes
-
Applicative -> InvariantApplicative
- Inherited from:
- Applicative
Attributes
- Definition Classes
-
Applicative -> InvariantApplicative
- Inherited from:
- Applicative
Inherited fields
Attributes
- Inherited from:
- ApplicativePlus
Attributes
- Inherited from:
- Applicative
Attributes
- Inherited from:
- Apply
Attributes
- Inherited from:
- Bind
Attributes
- Inherited from:
- Functor
Attributes
- Inherited from:
- InvariantApplicative
Attributes
- Inherited from:
- InvariantFunctor
Attributes
- Inherited from:
- MonadPlus
Attributes
- Inherited from:
- Monad
Attributes
- Inherited from:
- PlusEmpty
Attributes
- Inherited from:
- Plus