TheseT
Utilities
TheseM(deprecated)TheseM1(deprecated)TheseM2(deprecated)TheseT(deprecated)TheseT1(deprecated)TheseT2(deprecated)- ap
- bimap
- both
- chain
getTheseM(deprecated)- left
- leftF
- map
- mapLeft
- match
- matchE
- right
- rightF
- swap
- toTuple2
Utilities
TheseM
TheseM
Signature
export interface TheseM<M> {
readonly bimap: <E, A, N, B>(fa: TheseT<M, E, A>, f: (e: E) => N, g: (a: A) => B) => TheseT<M, N, B>
readonly both: <E, A>(e: E, a: A) => TheseT<M, E, A>
readonly fold: <E, A, R>(
fa: TheseT<M, E, A>,
onLeft: (e: E) => HKT<M, R>,
onRight: (a: A) => HKT<M, R>,
onBoth: (e: E, a: A) => HKT<M, R>,
) => HKT<M, R>
readonly getMonad: <E>(S: Semigroup<E>) => {
readonly _E: E
readonly map: <A, B>(ma: TheseT<M, E, A>, f: (a: A) => B) => TheseT<M, E, B>
readonly of: <A>(a: A) => TheseT<M, E, A>
readonly ap: <A, B>(mab: TheseT<M, E, (a: A) => B>, ma: TheseT<M, E, A>) => TheseT<M, E, B>
readonly chain: <A, B>(ma: TheseT<M, E, A>, f: (a: A) => TheseT<M, E, B>) => TheseT<M, E, B>
}
readonly left: <E, A>(e: E) => TheseT<M, E, A>
readonly leftM: <E, A>(me: HKT<M, E>) => TheseT<M, E, A>
readonly map: <E, A, B>(fa: TheseT<M, E, A>, f: (a: A) => B) => TheseT<M, E, B>
readonly mapLeft: <E, A, N>(fa: TheseT<M, E, A>, f: (e: E) => N) => TheseT<M, N, A>
readonly right: <E, A>(a: A) => TheseT<M, E, A>
readonly rightM: <E, A>(ma: HKT<M, A>) => TheseT<M, E, A>
readonly swap: <E, A>(fa: TheseT<M, E, A>) => TheseT<M, A, E>
readonly toTuple: <E, A>(fa: TheseT<M, E, A>, e: E, a: A) => HKT<M, [E, A]>
}
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
TheseM1
TheseM1
Signature
export interface TheseM1<M extends URIS> {
readonly bimap: <E, A, N, B>(fa: TheseT1<M, E, A>, f: (e: E) => N, g: (a: A) => B) => TheseT1<M, N, B>
readonly both: <E, A>(e: E, a: A) => TheseT1<M, E, A>
readonly fold: <E, A, R>(
fa: TheseT1<M, E, A>,
onLeft: (e: E) => Kind<M, R>,
onRight: (a: A) => Kind<M, R>,
onBoth: (e: E, a: A) => Kind<M, R>,
) => Kind<M, R>
readonly getMonad: <E>(S: Semigroup<E>) => {
readonly _E: E
readonly map: <A, B>(ma: TheseT1<M, E, A>, f: (a: A) => B) => TheseT1<M, E, B>
readonly of: <A>(a: A) => TheseT1<M, E, A>
readonly ap: <A, B>(mab: TheseT1<M, E, (a: A) => B>, ma: TheseT1<M, E, A>) => TheseT1<M, E, B>
readonly chain: <A, B>(ma: TheseT1<M, E, A>, f: (a: A) => TheseT1<M, E, B>) => TheseT1<M, E, B>
}
readonly left: <E, A>(e: E) => TheseT1<M, E, A>
readonly leftM: <E, A>(me: Kind<M, E>) => TheseT1<M, E, A>
readonly map: <E, A, B>(fa: TheseT1<M, E, A>, f: (a: A) => B) => TheseT1<M, E, B>
readonly mapLeft: <E, A, N>(fa: TheseT1<M, E, A>, f: (e: E) => N) => TheseT1<M, N, A>
readonly right: <E, A>(a: A) => TheseT1<M, E, A>
readonly rightM: <E, A>(ma: Kind<M, A>) => TheseT1<M, E, A>
readonly swap: <E, A>(fa: TheseT1<M, E, A>) => TheseT1<M, A, E>
readonly toTuple: <E, A>(fa: TheseT1<M, E, A>, e: E, a: A) => Kind<M, [E, A]>
}
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
TheseM2
TheseM2
Signature
export interface TheseM2<M extends URIS2> {
readonly bimap: <R, E, A, N, B>(fa: TheseT2<M, R, E, A>, f: (e: E) => N, g: (a: A) => B) => TheseT2<M, R, N, B>
readonly both: <R, E, A>(e: E, a: A) => TheseT2<M, R, E, A>
readonly fold: <R, E, A, B>(
fa: TheseT2<M, R, E, A>,
onLeft: (e: E) => Kind2<M, R, B>,
onRight: (a: A) => Kind2<M, R, B>,
onBoth: (e: E, a: A) => Kind2<M, R, B>,
) => Kind2<M, R, B>
readonly getMonad: <E>(S: Semigroup<E>) => {
readonly _E: E
readonly map: <R, A, B>(ma: TheseT2<M, R, E, A>, f: (a: A) => B) => TheseT2<M, R, E, B>
readonly of: <R, A>(a: A) => TheseT2<M, R, E, A>
readonly ap: <R, A, B>(mab: TheseT2<M, R, E, (a: A) => B>, ma: TheseT2<M, R, E, A>) => TheseT2<M, R, E, B>
readonly chain: <R, A, B>(ma: TheseT2<M, R, E, A>, f: (a: A) => TheseT2<M, R, E, B>) => TheseT2<M, R, E, B>
}
readonly left: <R, E, A>(e: E) => TheseT2<M, R, E, A>
readonly leftM: <R, E, A>(me: Kind2<M, R, E>) => TheseT2<M, R, E, A>
readonly map: <R, E, A, B>(fa: TheseT2<M, R, E, A>, f: (a: A) => B) => TheseT2<M, R, E, B>
readonly mapLeft: <R, E, A, N>(fa: TheseT2<M, R, E, A>, f: (e: E) => N) => TheseT2<M, R, N, A>
readonly right: <R, E, A>(a: A) => TheseT2<M, R, E, A>
readonly rightM: <R, E, A>(ma: Kind2<M, R, A>) => TheseT2<M, R, E, A>
readonly swap: <R, E, A>(fa: TheseT2<M, R, E, A>) => TheseT2<M, R, A, E>
readonly toTuple: <R, E, A>(fa: TheseT2<M, R, E, A>, e: E, a: A) => Kind2<M, R, [E, A]>
}
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
TheseT
TheseT
Signature
export interface TheseT<M, E, A> extends HKT<M, These<E, A>> {}
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
TheseT1
TheseT1
Signature
export type TheseT1<M extends URIS, E, A> = Kind<M, These<E, A>>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
TheseT2
TheseT2
Signature
export type TheseT2<M extends URIS2, R, E, A> = Kind2<M, R, These<E, A>>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
ap
Signature
export declare function ap<F extends URIS3, E>(
F: Apply3<F>,
S: Semigroup<E>,
): <R, FE, A>(
fa: Kind3<F, R, FE, These<E, A>>,
) => <B>(fab: Kind3<F, R, FE, These<E, (a: A) => B>>) => Kind3<F, R, FE, These<E, B>>
export declare function ap<F extends URIS3, FE, E>(
F: Apply3C<F, FE>,
S: Semigroup<E>,
): <R, A>(
fa: Kind3<F, R, FE, These<E, A>>,
) => <B>(fab: Kind3<F, R, FE, These<E, (a: A) => B>>) => Kind3<F, R, FE, These<E, B>>
export declare function ap<F extends URIS2, E>(
F: Apply2<F>,
S: Semigroup<E>,
): <FE, A>(fa: Kind2<F, FE, These<E, A>>) => <B>(fab: Kind2<F, FE, These<E, (a: A) => B>>) => Kind2<F, FE, These<E, B>>
export declare function ap<F extends URIS2, FE, E>(
F: Apply2C<F, FE>,
S: Semigroup<E>,
): <A>(fa: Kind2<F, FE, These<E, A>>) => <B>(fab: Kind2<F, FE, These<E, (a: A) => B>>) => Kind2<F, FE, These<E, B>>
export declare function ap<F extends URIS, E>(
F: Apply1<F>,
S: Semigroup<E>,
): <A>(fa: Kind<F, These<E, A>>) => <B>(fab: Kind<F, These<E, (a: A) => B>>) => Kind<F, These<E, B>>
export declare function ap<F, E>(
F: Apply<F>,
S: Semigroup<E>,
): <A>(fa: HKT<F, These<E, A>>) => <B>(fab: HKT<F, These<E, (a: A) => B>>) => HKT<F, These<E, B>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
bimap
Signature
export declare function bimap<F extends URIS3>(
F: Functor3<F>,
): <E, G, A, B>(
f: (e: E) => G,
g: (a: A) => B,
) => <R, FE>(fea: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<G, B>>
export declare function bimap<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <E, G, A, B>(
f: (e: E) => G,
g: (a: A) => B,
) => <R>(fea: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<G, B>>
export declare function bimap<F extends URIS2>(
F: Functor2<F>,
): <E, G, A, B>(f: (e: E) => G, g: (a: A) => B) => <FE>(fea: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<G, B>>
export declare function bimap<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <E, G, A, B>(f: (e: E) => G, g: (a: A) => B) => (fea: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<G, B>>
export declare function bimap<F extends URIS>(
F: Functor1<F>,
): <E, G, A, B>(f: (e: E) => G, g: (a: A) => B) => (fea: Kind<F, These<E, A>>) => Kind<F, These<G, B>>
export declare function bimap<F>(
F: Functor<F>,
): <E, G, A, B>(f: (e: E) => G, g: (a: A) => B) => (fea: HKT<F, These<E, A>>) => HKT<F, These<G, B>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
both
Signature
export declare function both<F extends URIS3>(F: Pointed3<F>): <E, A, S, R>(e: E, a: A) => Kind3<F, S, R, These<E, A>>
export declare function both<F extends URIS3, R>(F: Pointed3C<F, R>): <E, A>(e: E, a: A) => Kind3<F, R, R, These<E, A>>
export declare function both<F extends URIS2>(F: Pointed2<F>): <E, A, R>(e: E, a: A) => Kind2<F, R, These<E, A>>
export declare function both<F extends URIS2, R>(F: Pointed2C<F, R>): <E, A>(e: E, a: A) => Kind2<F, R, These<E, A>>
export declare function both<F extends URIS>(F: Pointed1<F>): <E, A>(e: E, a: A) => Kind<F, These<E, A>>
export declare function both<F>(F: Pointed<F>): <E, A = never>(e: E, a: A) => HKT<F, These<E, A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
chain
Signature
export declare function chain<M extends URIS3, E>(
M: Monad3<M>,
S: Semigroup<E>,
): <A, R, ME, B>(
f: (a: A) => Kind3<M, R, ME, These<E, B>>,
) => (ma: Kind3<M, R, ME, These<E, A>>) => Kind3<M, R, ME, These<E, B>>
export declare function chain<M extends URIS3, ME, E>(
M: Monad3C<M, ME>,
S: Semigroup<E>,
): <A, R, B>(
f: (a: A) => Kind3<M, R, ME, These<E, B>>,
) => (ma: Kind3<M, R, ME, These<E, A>>) => Kind3<M, R, ME, These<E, B>>
export declare function chain<M extends URIS2, E>(
M: Monad2<M>,
S: Semigroup<E>,
): <A, ME, B>(f: (a: A) => Kind2<M, ME, These<E, B>>) => (ma: Kind2<M, ME, These<E, A>>) => Kind2<M, ME, These<E, B>>
export declare function chain<M extends URIS2, ME, E>(
M: Monad2C<M, ME>,
S: Semigroup<E>,
): <A, B>(f: (a: A) => Kind2<M, ME, These<E, B>>) => (ma: Kind2<M, ME, These<E, A>>) => Kind2<M, ME, These<E, B>>
export declare function chain<M extends URIS, E>(
M: Monad1<M>,
S: Semigroup<E>,
): <A, B>(f: (a: A) => Kind<M, These<E, B>>) => (ma: Kind<M, These<E, A>>) => Kind<M, These<E, B>>
export declare function chain<M, E>(
M: Monad<M>,
S: Semigroup<E>,
): <A, B>(f: (a: A) => HKT<M, These<E, B>>) => (ma: HKT<M, These<E, A>>) => HKT<M, These<E, B>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
getTheseM
getTheseM
Signature
export declare function getTheseM<M extends URIS2>(M: Monad2<M>): TheseM2<M>
export declare function getTheseM<M extends URIS>(M: Monad1<M>): TheseM1<M>
export declare function getTheseM<M>(M: Monad<M>): TheseM<M>
Details
- Added in 0.1.0
- Deprecated
License
- MIT – Copyright (c) 2017-present Giulio Canti
left
Signature
export declare function left<F extends URIS3>(
F: Pointed3<F>,
): <E, R, FE, A = never>(e: E) => Kind3<F, R, FE, These<E, A>>
export declare function left<F extends URIS3, FE>(
F: Pointed3C<F, FE>,
): <E, R, A = never>(e: E) => Kind3<F, R, FE, These<E, A>>
export declare function left<F extends URIS2>(F: Pointed2<F>): <E, FE, A = never>(e: E) => Kind2<F, FE, These<E, A>>
export declare function left<F extends URIS2, FE>(
F: Pointed2C<F, FE>,
): <E, A = never>(e: E) => Kind2<F, FE, These<E, A>>
export declare function left<F extends URIS>(F: Pointed1<F>): <E, A = never>(e: E) => Kind<F, These<E, A>>
export declare function left<F>(F: Pointed<F>): <E, A = never>(e: E) => HKT<F, These<E, A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
leftF
Signature
export declare function leftF<F extends URIS3>(
F: Functor3<F>,
): <R, FE, E, A = never>(fe: Kind3<F, R, FE, E>) => Kind3<F, R, FE, These<E, A>>
export declare function leftF<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <R, E, A = never>(fe: Kind3<F, R, FE, E>) => Kind3<F, R, FE, These<E, A>>
export declare function leftF<F extends URIS2>(
F: Functor2<F>,
): <FE, E, A = never>(fe: Kind2<F, FE, E>) => Kind2<F, FE, These<E, A>>
export declare function leftF<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <E, A = never>(fe: Kind2<F, FE, E>) => Kind2<F, FE, These<E, A>>
export declare function leftF<F extends URIS>(F: Functor1<F>): <E, A = never>(fe: Kind<F, E>) => Kind<F, These<E, A>>
export declare function leftF<F>(F: Functor<F>): <E, A = never>(fe: HKT<F, E>) => HKT<F, These<E, A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
map
Signature
export declare function map<F extends URIS3>(
F: Functor3<F>,
): <A, B>(f: (a: A) => B) => <R, FE, E>(fa: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<E, B>>
export declare function map<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <A, B>(f: (a: A) => B) => <R, E>(fa: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<E, B>>
export declare function map<F extends URIS2>(
F: Functor2<F>,
): <A, B>(f: (a: A) => B) => <FE, E>(fa: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<E, B>>
export declare function map<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <A, B>(f: (a: A) => B) => <E>(fa: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<E, B>>
export declare function map<F extends URIS>(
F: Functor1<F>,
): <A, B>(f: (a: A) => B) => <E>(fa: Kind<F, These<E, A>>) => Kind<F, These<E, B>>
export declare function map<F>(
F: Functor<F>,
): <A, B>(f: (a: A) => B) => <E>(fa: HKT<F, These<E, A>>) => HKT<F, These<E, B>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
mapLeft
Signature
export declare function mapLeft<F extends URIS3>(
F: Functor3<F>,
): <E, G>(f: (e: E) => G) => <R, FE, A>(fea: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<G, A>>
export declare function mapLeft<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <E, G>(f: (e: E) => G) => <R, A>(fea: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<G, A>>
export declare function mapLeft<F extends URIS2>(
F: Functor2<F>,
): <E, G>(f: (e: E) => G) => <FE, A>(fea: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<G, A>>
export declare function mapLeft<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <E, G>(f: (e: E) => G) => <A>(fea: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<G, A>>
export declare function mapLeft<F extends URIS>(
F: Functor1<F>,
): <E, G>(f: (e: E) => G) => <A>(fea: Kind<F, These<E, A>>) => Kind<F, These<G, A>>
export declare function mapLeft<F>(
F: Functor<F>,
): <E, G>(f: (e: E) => G) => <A>(fea: HKT<F, These<E, A>>) => HKT<F, These<G, A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
match
Signature
export declare function match<F extends URIS3>(
F: Functor3<F>,
): <E, B, A>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => <S, R>(ma: Kind3<F, S, R, These<E, A>>) => Kind3<F, S, R, B>
export declare function match<F extends URIS3, R>(
F: Functor3C<F, R>,
): <E, B, A>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => <S>(ma: Kind3<F, S, R, These<E, A>>) => Kind3<F, S, R, B>
export declare function match<F extends URIS2>(
F: Functor2<F>,
): <E, B, A>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => <R>(ma: Kind2<F, R, These<E, A>>) => Kind2<F, R, B>
export declare function match<M extends URIS2, R>(
F: Functor2C<M, R>,
): <E, B, A>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => (ma: Kind2<M, R, These<E, A>>) => Kind2<M, R, B>
export declare function match<F extends URIS>(
F: Functor1<F>,
): <E, B, A>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => (ma: Kind<F, These<E, A>>) => Kind<F, B>
export declare function match<F>(
F: Functor<F>,
): <E, B, A>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => (ma: HKT<F, These<E, A>>) => HKT<F, B>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
matchE
Signature
export declare function matchE<M extends URIS3>(
M: Chain3<M>,
): <E, R, ME, B, A>(
onLeft: (e: E) => Kind3<M, R, ME, B>,
onRight: (a: A) => Kind3<M, R, ME, B>,
onBoth: (e: E, a: A) => Kind3<M, R, ME, B>,
) => (ma: Kind3<M, R, ME, These<E, A>>) => Kind3<M, R, ME, B>
export declare function matchE<M extends URIS3, ME>(
M: Chain3C<M, ME>,
): <E, R, B, A>(
onLeft: (e: E) => Kind3<M, R, ME, B>,
onRight: (a: A) => Kind3<M, R, ME, B>,
onBoth: (e: E, a: A) => Kind3<M, R, ME, B>,
) => (ma: Kind3<M, R, ME, These<E, A>>) => Kind3<M, R, ME, B>
export declare function matchE<M extends URIS2>(
M: Chain2<M>,
): <E, ME, B, A>(
onLeft: (e: E) => Kind2<M, ME, B>,
onRight: (a: A) => Kind2<M, ME, B>,
onBoth: (e: E, a: A) => Kind2<M, ME, B>,
) => (ma: Kind2<M, ME, These<E, A>>) => Kind2<M, ME, B>
export declare function matchE<M extends URIS2, ME>(
M: Chain2C<M, ME>,
): <E, B, A>(
onLeft: (e: E) => Kind2<M, ME, B>,
onRight: (a: A) => Kind2<M, ME, B>,
onBoth: (e: E, a: A) => Kind2<M, ME, B>,
) => (ma: Kind2<M, ME, These<E, A>>) => Kind2<M, ME, B>
export declare function matchE<M extends URIS>(
M: Chain1<M>,
): <E, B, A>(
onLeft: (e: E) => Kind<M, B>,
onRight: (a: A) => Kind<M, B>,
onBoth: (e: E, a: A) => Kind<M, B>,
) => (ma: Kind<M, These<E, A>>) => Kind<M, B>
export declare function matchE<M>(
M: Chain<M>,
): <E, B, A>(
onLeft: (e: E) => HKT<M, B>,
onRight: (a: A) => HKT<M, B>,
onBoth: (e: E, a: A) => HKT<M, B>,
) => (ma: HKT<M, These<E, A>>) => HKT<M, B>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
right
Signature
export declare function right<F extends URIS3>(
F: Pointed3<F>,
): <A, R, FE, E = never>(a: A) => Kind3<F, R, FE, These<E, A>>
export declare function right<F extends URIS3, FE>(
F: Pointed3C<F, FE>,
): <A, R, E = never>(a: A) => Kind3<F, R, FE, These<E, A>>
export declare function right<F extends URIS2>(F: Pointed2<F>): <A, FE, E = never>(a: A) => Kind2<F, FE, These<E, A>>
export declare function right<F extends URIS2, FE>(
F: Pointed2C<F, FE>,
): <A, E = never>(a: A) => Kind2<F, FE, These<E, A>>
export declare function right<F extends URIS>(F: Pointed1<F>): <A, E = never>(a: A) => Kind<F, These<E, A>>
export declare function right<F>(F: Pointed<F>): <A, E = never>(a: A) => HKT<F, These<E, A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
rightF
Signature
export declare function rightF<F extends URIS3>(
F: Functor3<F>,
): <R, FE, A, E = never>(fa: Kind3<F, R, FE, A>) => Kind3<F, R, FE, These<E, A>>
export declare function rightF<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <R, A, E = never>(fa: Kind3<F, R, FE, A>) => Kind3<F, R, FE, These<E, A>>
export declare function rightF<F extends URIS2>(
F: Functor2<F>,
): <FE, A, E = never>(fa: Kind2<F, FE, A>) => Kind2<F, FE, These<E, A>>
export declare function rightF<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <A, E = never>(fa: Kind2<F, FE, A>) => Kind2<F, FE, These<E, A>>
export declare function rightF<F extends URIS>(F: Functor1<F>): <A, E = never>(fa: Kind<F, A>) => Kind<F, These<E, A>>
export declare function rightF<F>(F: Functor<F>): <A, E = never>(fa: HKT<F, A>) => HKT<F, These<E, A>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
swap
Signature
export declare function swap<F extends URIS3>(
F: Functor3<F>,
): <R, FE, E, A>(ma: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<A, E>>
export declare function swap<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <R, E, A>(ma: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, These<A, E>>
export declare function swap<F extends URIS2>(
F: Functor2<F>,
): <FE, E, A>(ma: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<A, E>>
export declare function swap<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <E, A>(ma: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, These<A, E>>
export declare function swap<F extends URIS>(F: Functor1<F>): <E, A>(ma: Kind<F, These<E, A>>) => Kind<F, These<A, E>>
export declare function swap<F>(F: Functor<F>): <E, A>(ma: HKT<F, These<E, A>>) => HKT<F, These<A, E>>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
toTuple2
Signature
export declare function toTuple2<F extends URIS3>(
F: Functor3<F>,
): <E, A>(e: LazyArg<E>, a: LazyArg<A>) => <R, FE>(fa: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, readonly [E, A]>
export declare function toTuple2<F extends URIS3, FE>(
F: Functor3C<F, FE>,
): <E, A>(e: LazyArg<E>, a: LazyArg<A>) => <R>(fa: Kind3<F, R, FE, These<E, A>>) => Kind3<F, R, FE, readonly [E, A]>
export declare function toTuple2<F extends URIS2>(
F: Functor2<F>,
): <E, A>(e: LazyArg<E>, a: LazyArg<A>) => <FE>(fa: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, readonly [E, A]>
export declare function toTuple2<F extends URIS2, FE>(
F: Functor2C<F, FE>,
): <E, A>(e: LazyArg<E>, a: LazyArg<A>) => (fa: Kind2<F, FE, These<E, A>>) => Kind2<F, FE, readonly [E, A]>
export declare function toTuple2<F extends URIS>(
F: Functor1<F>,
): <E, A>(e: LazyArg<E>, a: LazyArg<A>) => (fa: Kind<F, These<E, A>>) => Kind<F, readonly [E, A]>
export declare function toTuple2<F>(
F: Functor<F>,
): <E, A>(e: LazyArg<E>, a: LazyArg<A>) => (fa: HKT<F, These<E, A>>) => HKT<F, readonly [E, A]>
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti