/** * @since 2.4.0 */ import { Applicative2, Applicative2C } from './Applicative' import { Apply1 } from './Apply' import { Bifunctor2 } from './Bifunctor' import { Functor2 } from './Functor' import { IO } from './IO' import { IOEither } from './IOEither' import { Monad2C } from './Monad' import { MonadIO2 } from './MonadIO' import { MonadTask2, MonadTask2C } from './MonadTask' import { Semigroup } from './Semigroup' import * as T from './Task' import * as TH from './These' import These = TH.These import Task = T.Task /** * @category model * @since 2.4.0 */ export interface TaskThese extends Task> {} /** * @category constructors * @since 2.4.0 */ export declare const left: (e: E) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const right: (a: A) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const both: (e: E, a: A) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const rightTask: (ma: Task) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const leftTask: (me: Task) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const rightIO: (ma: IO) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const leftIO: (me: IO) => TaskThese /** * @category constructors * @since 2.4.0 */ export declare const fromIOEither: (fa: IOEither) => TaskThese /** * @category destructors * @since 2.4.0 */ export declare const fold: ( onLeft: (e: E) => Task, onRight: (a: A) => Task, onBoth: (e: E, a: A) => Task ) => (fa: TaskThese) => Task /** * @category destructors * @since 2.4.0 */ export declare const toTuple: (e: E, a: A) => (fa: TaskThese) => Task<[E, A]> /** * @category combinators * @since 2.4.0 */ export declare const swap: (fa: TaskThese) => TaskThese /** * `map` can be used to turn functions `(a: A) => B` into functions `(fa: F) => F` whose argument and return types * use the type constructor `F` to represent some computational context. * * @category Functor * @since 2.4.0 */ export declare const map: (f: (a: A) => B) => (fa: TaskThese) => TaskThese /** * Map a pair of functions over the two type arguments of the bifunctor. * * @category Bifunctor * @since 2.4.0 */ export declare const bimap: (f: (e: E) => G, g: (a: A) => B) => (fa: TaskThese) => TaskThese /** * Map a function over the first type argument of a bifunctor. * * @category Bifunctor * @since 2.4.0 */ export declare const mapLeft: (f: (e: E) => G) => (fa: TaskThese) => TaskThese /** * Wrap a value into the type constructor. * * Equivalent to [`right`](#right). * * @category Applicative * @since 2.7.0 */ export declare const of: Applicative2['of'] /** * @category MonadIO * @since 2.7.0 */ export declare const fromIO: MonadIO2['fromIO'] /** * @category MonadIO * @since 2.7.0 */ export declare const fromTask: MonadTask2['fromTask'] /** * @category instances * @since 2.4.0 */ export declare const URI = 'TaskThese' /** * @category instances * @since 2.4.0 */ export declare type URI = typeof URI declare module './HKT' { interface URItoKind2 { readonly [URI]: TaskThese } } /** * @category instances * @since 2.4.0 */ export declare function getSemigroup(SE: Semigroup, SA: Semigroup): Semigroup> /** * @category instances * @since 2.7.0 */ export declare function getApplicative(A: Apply1, SE: Semigroup): Applicative2C /** * @category instances * @since 2.4.0 */ export declare function getMonad(SE: Semigroup): Monad2C & MonadTask2C /** * @category instances * @since 2.7.0 */ export declare const functorTaskThese: Functor2 /** * @category instances * @since 2.7.0 */ export declare const bifunctorTaskThese: Bifunctor2 /** * @category instances * @since 2.4.0 */ export declare const taskThese: Functor2 & Bifunctor2