Zero overview
Added in v2.11.0
Table of contents
do notation
guard
Signature
export declare function guard<F extends URIS4>(
F: Zero4<F>,
P: Pointed4<F>
): <S, R, E>(b: boolean) => Kind4<F, S, R, E, void>
export declare function guard<F extends URIS3>(F: Zero3<F>, P: Pointed3<F>): <R, E>(b: boolean) => Kind3<F, R, E, void>
export declare function guard<F extends URIS3, E>(
F: Zero3C<F, E>,
P: Pointed3C<F, E>
): <R>(b: boolean) => Kind3<F, R, E, void>
export declare function guard<F extends URIS2>(F: Zero2<F>, P: Pointed2<F>): <E>(b: boolean) => Kind2<F, E, void>
export declare function guard<F extends URIS2, E>(
F: Zero2C<F, E>,
P: Pointed2C<F, E>
): (b: boolean) => Kind2<F, E, void>
export declare function guard<F extends URIS>(F: Zero1<F>, P: Pointed1<F>): (b: boolean) => Kind<F, void>
export declare function guard<F>(F: Zero<F>, P: Pointed<F>): (b: boolean) => HKT<F, void>
Added in v2.11.0
model
Zero (interface)
Signature
export interface Zero<F> {
readonly URI: F
readonly zero: <A>() => HKT<F, A>
}
Added in v2.11.0
Zero1 (interface)
Signature
export interface Zero1<F extends URIS> {
readonly URI: F
readonly zero: <A>() => Kind<F, A>
}
Added in v2.11.0
Zero2 (interface)
Signature
export interface Zero2<F extends URIS2> {
readonly URI: F
readonly zero: <E, A>() => Kind2<F, E, A>
}
Added in v2.11.0
Zero2C (interface)
Signature
export interface Zero2C<F extends URIS2, E> {
readonly URI: F
readonly _E: E
readonly zero: <A>() => Kind2<F, E, A>
}
Added in v2.11.0
Zero3 (interface)
Signature
export interface Zero3<F extends URIS3> {
readonly URI: F
readonly zero: <R, E, A>() => Kind3<F, R, E, A>
}
Added in v2.11.0
Zero3C (interface)
Signature
export interface Zero3C<F extends URIS3, E> {
readonly URI: F
readonly _E: E
readonly zero: <R, A>() => Kind3<F, R, E, A>
}
Added in v2.11.0
Zero4 (interface)
Signature
export interface Zero4<F extends URIS4> {
readonly URI: F
readonly zero: <S, R, E, A>() => Kind4<F, S, R, E, A>
}
Added in v2.11.0