← Back

Source

chain

chain<F>(F: Monad<F>): OptionT<F>['chain']

Added in v1.0.0 (function)

fold

fold<F>(F: Functor<F>): <R, A>(r: R, some: (a: A) => R, fa: HKT<F, Option<A>>) => HKT<F, R>

Added in v1.0.0 (function)

fromOption

fromOption<F>(F: Applicative<F>): <A>(fa: Option<A>) => HKT<F, Option<A>>

Added in v1.0.0 (function)

getOptionT

getOptionT<M>(M: Monad<M>): OptionT<M>

Added in v1.0.0 (function)

getOrElse

getOrElse<F>(F: Functor<F>): <A>(a: A) => (fa: HKT<F, Option<A>>) => HKT<F, A>

Added in v1.0.0 (function)

liftF

liftF<F>(F: Functor<F>): <A>(fa: HKT<F, A>) => HKT<F, Option<A>>

Added in v1.0.0 (function)

none

none<F>(F: Applicative<F>): () => HKT<F, Option<never>>

Added in v1.0.0 (function)

some

some<F>(F: Applicative<F>): <A>(a: A) => HKT<F, Option<A>>

Added in v1.0.0 (function)