LanguageExt.Core

LanguageExt.Core Effects Eff Eff with runtime Operators

Contents

class EffExtensions Source #

Operators

operator >>> (K<Eff<RT>, A> ma, K<Eff<RT>, B> mb) Source #

Applicative sequence operator

operator * (K<Eff<RT>, Func<A, B>> mf, K<Eff<RT>, A> ma) Source #

Applicative apply operator

operator * (K<Eff<RT>, A> ma, K<Eff<RT>, Func<A, B>> mf) Source #

Applicative apply operator

class EffExtensions Source #

Operators

operator | (K<Eff<RT>, A> lhs, K<Eff<RT>, A> rhs) Source #

operator | (K<Eff<RT>, A> lhs, K<Eff, A> rhs) Source #

operator | (K<Eff<RT>, A> lhs, Pure<A> rhs) Source #

class EffExtensions Source #

Operators

operator + (K<Eff<RT>, A> ma) Source #

Downcast operator

class EffExtensions Source #

Operators

operator | (K<Eff<RT>, A> lhs, CatchM<Error, Eff<RT>, A> rhs) Source #

operator | (K<Eff<RT>, A> lhs, Fail<Error> rhs) Source #

operator | (K<Eff<RT>, A> lhs, Error rhs) Source #

class EffExtensions Source #

Operators

operator | (K<Eff<RT>, A> lhs, Finally<Eff<RT>, X> rhs) Source #

Run a finally operation after the main operation regardless of whether it succeeds or not.

Parameters

param lhs

Primary operation

param rhs

Finally operation

returns

Result of primary operation

class EffExtensions Source #

Operators

operator * (Func<A, B> f, K<Eff<RT>, A> ma) Source #

Functor map operator

operator * (K<Eff<RT>, A> ma, Func<A, B> f) Source #

Functor map operator

class EffExtensions Source #

Operators

operator >> (K<Eff<RT>, A> ma, Func<A, K<Eff<RT>, B>> f) Source #

Monad bind operator

Parameters

param ma

Monad to bind

param f

Binding function

returns

Mapped monad

operator >> (K<Eff<RT>, A> lhs, K<Eff<RT>, B> rhs) Source #

Sequentially compose two actions, discarding any value produced by the first, like sequencing operators (such as the semicolon) in C#.

Parameters

param lhs

First action to run

param rhs

Second action to run

returns

Result of the second action

operator >> (K<Eff<RT>, A> ma, Func<A, K<IO, B>> f) Source #

Monad bind operator

Parameters

param ma

Monad to bind

param f

Binding function

returns

Mapped monad

operator >> (K<Eff<RT>, A> lhs, K<IO, B> rhs) Source #

Sequentially compose two actions, discarding any value produced by the first, like sequencing operators (such as the semicolon) in C#.

Parameters

param lhs

First action to run

param rhs

Second action to run

returns

Result of the second action