FromReader
Constructors
Model
Utilities
Constructors
ask
Signature
export declare function ask<F extends URIS4>(F: FromReader4<F>): <S, R, E>() => Kind4<F, S, R, E, R>
export declare function ask<F extends URIS3>(F: FromReader3<F>): <R, E>() => Kind3<F, R, E, R>
export declare function ask<F extends URIS3, E>(F: FromReader3C<F, E>): <R>() => Kind3<F, R, E, R>
export declare function ask<F extends URIS2>(F: FromReader2<F>): <R>() => Kind2<F, R, R>
export declare function ask<F>(F: FromReader<F>): <R>() => HKT2<F, R, R>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
asks
Signature
export declare function asks<F extends URIS4>(F: FromReader4<F>): <R, A, S, E>(f: (r: R) => A) => Kind4<F, S, R, E, A>
export declare function asks<F extends URIS3>(F: FromReader3<F>): <R, A, E>(f: (r: R) => A) => Kind3<F, R, E, A>
export declare function asks<F extends URIS3, E>(F: FromReader3C<F, E>): <R, A>(f: (r: R) => A) => Kind3<F, R, E, A>
export declare function asks<F extends URIS2>(F: FromReader2<F>): <R, A>(f: (r: R) => A) => Kind2<F, R, A>
export declare function asks<F>(F: FromReader<F>): <R, A>(f: (r: R) => A) => HKT2<F, R, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Model
FromReader
Signature
export interface FromReader<F> {
readonly fromReader: <R, A>(fa: Reader<R, A>) => HKT2<F, R, A>
readonly URI: F
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromReader2
Signature
export interface FromReader2<F extends URIS2> {
readonly fromReader: <E, A>(fa: Reader<E, A>) => Kind2<F, E, A>
readonly URI: F
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromReader3
Signature
export interface FromReader3<F extends URIS3> {
readonly fromReader: <R, A, E>(fa: Reader<R, A>) => Kind3<F, R, E, A>
readonly URI: F
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromReader3C
Signature
export interface FromReader3C<F extends URIS3, E> {
readonly _E: E
readonly fromReader: <R, A>(fa: Reader<R, A>) => Kind3<F, R, E, A>
readonly URI: F
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FromReader4
Signature
export interface FromReader4<F extends URIS4> {
readonly fromReader: <R, A, S, E>(fa: Reader<R, A>) => Kind4<F, S, R, E, A>
readonly URI: F
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Utilities
chainFirstReaderK
Signature
export declare function chainFirstReaderK<M extends URIS4>(
F: FromReader4<M>,
M: Chain4<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => <S, E>(ma: Kind4<M, S, R, E, A>) => Kind4<M, S, R, E, A>
export declare function chainFirstReaderK<M extends URIS3>(
F: FromReader3<M>,
M: Chain3<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => <E>(ma: Kind3<M, R, E, A>) => Kind3<M, R, E, A>
export declare function chainFirstReaderK<M extends URIS3, E>(
F: FromReader3C<M, E>,
M: Chain3C<M, E>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => (ma: Kind3<M, R, E, A>) => Kind3<M, R, E, A>
export declare function chainFirstReaderK<M extends URIS2>(
F: FromReader2<M>,
M: Chain2<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => (ma: Kind2<M, R, A>) => Kind2<M, R, A>
export declare function chainFirstReaderK<M>(
F: FromReader<M>,
M: Chain<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => (ma: HKT2<M, R, A>) => HKT2<M, R, A>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
chainReaderK
Signature
export declare function chainReaderK<M extends URIS4>(
F: FromReader4<M>,
M: Chain4<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => <S, E>(ma: Kind4<M, S, R, E, A>) => Kind4<M, S, R, E, B>
export declare function chainReaderK<M extends URIS3>(
F: FromReader3<M>,
M: Chain3<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => <E>(ma: Kind3<M, R, E, A>) => Kind3<M, R, E, B>
export declare function chainReaderK<M extends URIS3, E>(
F: FromReader3C<M, E>,
M: Chain3C<M, E>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => (ma: Kind3<M, R, E, A>) => Kind3<M, R, E, B>
export declare function chainReaderK<M extends URIS2>(
F: FromReader2<M>,
M: Chain2<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => (ma: Kind2<M, R, A>) => Kind2<M, R, B>
export declare function chainReaderK<M>(
F: FromReader<M>,
M: Chain<M>,
): <A, R, B>(f: (a: A) => Reader<R, B>) => (ma: HKT2<M, R, A>) => HKT2<M, R, B>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
fromReaderK
Signature
export declare function fromReaderK<F extends URIS4>(
F: FromReader4<F>,
): <A extends ReadonlyArray<unknown>, R, B>(f: (...a: A) => Reader<R, B>) => <S, E>(...a: A) => Kind4<F, S, R, E, B>
export declare function fromReaderK<F extends URIS3>(
F: FromReader3<F>,
): <A extends ReadonlyArray<unknown>, R, B>(f: (...a: A) => Reader<R, B>) => <E>(...a: A) => Kind3<F, R, E, B>
export declare function fromReaderK<F extends URIS3, E>(
F: FromReader3C<F, E>,
): <A extends ReadonlyArray<unknown>, R, B>(f: (...a: A) => Reader<R, B>) => (...a: A) => Kind3<F, R, E, B>
export declare function fromReaderK<F extends URIS2>(
F: FromReader2<F>,
): <A extends ReadonlyArray<unknown>, R, B>(f: (...a: A) => Reader<R, B>) => (...a: A) => Kind2<F, R, B>
export declare function fromReaderK<F>(
F: FromReader<F>,
): <A extends ReadonlyArray<unknown>, R, B>(f: (...a: A) => Reader<R, B>) => (...a: A) => HKT2<F, R, B>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
tapReader
Signature
export declare function tapReader<M extends URIS2>(
F: FromReader<M>,
M: Chain<M>,
): <A, R, B>(self: HKT2<M, R, A>, f: (a: A) => Reader<R, B>) => HKT2<M, R, A>