StateReaderTaskEither
Instances
- Alt
- Applicative
- Apply
- Bifunctor
- Chain
- ChainRec
- FromEither
- FromIO
- FromReader
- FromState
- FromTask
- Functor
- Monad
- MonadIO
- MonadTask
- MonadThrow
- Pointed
Combinators
Constructors
- ask
- asks
- asksStateReaderTaskEither
- asksStateReaderTaskEitherW
- fromReaderTaskEither
- get
- gets
- left
- leftIO
- leftReader
- leftState
- leftTask
- modify
- of
- put
- right
- rightIO
- rightReader
- rightState
- rightTask
Conversions
- fromEither
- fromIO
- fromIOEither
- fromOption
- fromReader
- fromReaderEither
- fromState
- fromTask
- fromTaskEither
Do notation
Error handling
Filtering
Instance methods
Legacy
- chain
- chainEitherK
- chainEitherKW
- chainFirst
- chainFirstEitherK
- chainFirstEitherKW
- chainFirstIOK
- chainFirstReaderK
- chainFirstReaderKW
- chainFirstTaskK
- chainFirstW
- chainIOEitherK
- chainIOEitherKW
- chainIOK
- chainOptionK
- chainOptionKW
- chainReaderK
- chainReaderKW
- chainReaderTaskEitherK
- chainReaderTaskEitherKW
- chainStateK
- chainTaskEitherK
- chainTaskEitherKW
- chainTaskK
- chainW
Lifting
- fromEitherK
- fromIOEitherK
- fromIOK
- fromOptionK
- fromPredicate
- fromReaderK
- fromReaderTaskEitherK
- fromStateK
- fromTaskEitherK
- fromTaskK
Mapping
Model
Sequencing
- flatMap
- flatMapEither
- flatMapIO
- flatMapIOEither
- flatMapOption
- flatMapReader
- flatMapReaderTaskEither
- flatMapState
- flatMapTask
- flatMapTaskEither
- flatten
- flattenW
Traversing
- sequenceArray
- traverseArray
- traverseArrayWithIndex
- traverseReadonlyArrayWithIndex
- traverseReadonlyNonEmptyArrayWithIndex
Type lambdas
Utilities
- ap
- apFirst
- apFirstW
- apS
- apSecond
- apSecondW
- apW
- bind
- bindTo
- bindW
- do
evalState(deprecated)- evaluate
execState(deprecated)- execute
- let
- local
run(deprecated)stateReaderTaskEither(deprecated)stateReaderTaskEitherSeq(deprecated)- throwError
Instances
Alt
Signature
export declare const Alt: Alt4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Applicative
Signature
export declare const Applicative: Applicative4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Apply
Signature
export declare const Apply: Apply4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Bifunctor
Signature
export declare const Bifunctor: Bifunctor4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Chain
Signature
export declare const Chain: chainable.Chain4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
ChainRec
ChainRec for StateReaderTaskEither
Signature
export declare const ChainRec: ChainRec4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2022-present Jacob Alford
FromEither
Signature
export declare const FromEither: FromEither4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromIO
Signature
export declare const FromIO: FromIO4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromReader
Signature
export declare const FromReader: FromReader4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromState
Signature
export declare const FromState: FromState4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromTask
Signature
export declare const FromTask: FromTask4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Functor
Signature
export declare const Functor: Functor4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Monad
Signature
export declare const Monad: Monad4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
MonadIO
Signature
export declare const MonadIO: MonadIO4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
MonadTask
Signature
export declare const MonadTask: MonadTask4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
MonadThrow
Signature
export declare const MonadThrow: MonadThrow4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Pointed
Signature
export declare const Pointed: Pointed4<URI>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Combinators
tap
Composes computations in sequence, using the return value of one computation to determine the next computation and keeping only the result of the first.
Signature
export declare const tap: {
<S, R1, E1, A, R2, E2, _>(
self: StateReaderTaskEither<S, R1, E1, A>,
f: (a: A) => StateReaderTaskEither<S, R2, E2, _>,
): StateReaderTaskEither<S, R1 & R2, E1 | E2, A>
<A, S, R2, E2, _>(
f: (a: A) => StateReaderTaskEither<S, R2, E2, _>,
): <R1, E1>(self: StateReaderTaskEither<S, R1, E1, A>) => StateReaderTaskEither<S, R1 & R2, E2 | E1, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
tapEither
Composes computations in sequence, using the return value of one computation to determine the next computation and keeping only the result of the first.
Signature
export declare const tapEither: {
<A, E2, _>(
f: (a: A) => Either<E2, _>,
): <S, R1, E1>(self: StateReaderTaskEither<S, R1, E1, A>) => StateReaderTaskEither<S, R1, E2 | E1, A>
<S, R1, E1, A, E2, _>(
self: StateReaderTaskEither<S, R1, E1, A>,
f: (a: A) => Either<E2, _>,
): StateReaderTaskEither<S, R1, E1 | E2, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
tapIO
Composes computations in sequence, using the return value of one computation to determine the next computation and keeping only the result of the first.
Signature
export declare const tapIO: {
<A, _>(f: (a: A) => IO<_>): <S, R, E>(self: StateReaderTaskEither<S, R, E, A>) => StateReaderTaskEither<S, R, E, A>
<S, R, E, A, _>(self: StateReaderTaskEither<S, R, E, A>, f: (a: A) => IO<_>): StateReaderTaskEither<S, R, E, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
tapReader
Composes computations in sequence, using the return value of one computation to determine the next computation and keeping only the result of the first.
Signature
export declare const tapReader: {
<A, R2, _>(
f: (a: A) => Reader<R2, _>,
): <S, R1, E>(self: StateReaderTaskEither<S, R1, E, A>) => StateReaderTaskEither<S, R1 & R2, E, A>
<S, R1, E, A, R2, _>(
self: StateReaderTaskEither<S, R1, E, A>,
f: (a: A) => Reader<R2, _>,
): StateReaderTaskEither<S, R1 & R2, E, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
tapTask
Composes computations in sequence, using the return value of one computation to determine the next computation and keeping only the result of the first.
Signature
export declare const tapTask: {
<A, _>(f: (a: A) => Task<_>): <S, R, E>(self: StateReaderTaskEither<S, R, E, A>) => StateReaderTaskEither<S, R, E, A>
<S, R, E, A, _>(self: StateReaderTaskEither<S, R, E, A>, f: (a: A) => Task<_>): StateReaderTaskEither<S, R, E, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Constructors
ask
Reads the current context.
Signature
export declare const ask: <S, R, E = never>() => StateReaderTaskEither<S, R, E, R>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
asks
Projects a value from the global context in a ReaderEither
.
Signature
export declare const asks: <S, R, A, E = never>(f: (r: R) => A) => StateReaderTaskEither<S, R, E, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
asksStateReaderTaskEither
Effectfully accesses the environment.
Signature
export declare const asksStateReaderTaskEither: <R, S, E, A>(
f: (r: R) => StateReaderTaskEither<S, R, E, A>,
) => StateReaderTaskEither<S, R, E, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
asksStateReaderTaskEitherW
Less strict version of asksStateReaderTaskEither
.
Signature
export declare const asksStateReaderTaskEitherW: <R1, S, R2, E, A>(
f: (r1: R1) => StateReaderTaskEither<S, R2, E, A>,
) => StateReaderTaskEither<S, R1 & R2, E, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
fromReaderTaskEither
Signature
export declare const fromReaderTaskEither: <R, E, A, S>(
fa: ReaderTaskEither<R, E, A>,
) => StateReaderTaskEither<S, R, E, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
get
Get the current state
Signature
export declare const get: <S, R, E = never>() => StateReaderTaskEither<S, R, E, S>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
gets
Get a value which depends on the current state
Signature
export declare const gets: <S, R, E = never, A = never>(f: (s: S) => A) => StateReaderTaskEither<S, R, E, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
left
Signature
export declare const left: <S, R, E, A = never>(e: E) => StateReaderTaskEither<S, R, E, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti