move FallibleWrapped
to func::context
This commit is contained in:
parent
00baa846dd
commit
75b4898094
@ -49,3 +49,6 @@ pub trait FallibleCtx<'a>: FunctorContext<'a> {
|
|||||||
|
|
||||||
/// Preferred monad for fallible uses.
|
/// Preferred monad for fallible uses.
|
||||||
pub type FallibleMonad<'a, Ctx, E> = <<Ctx as FallibleCtx<'a>>::Fallible as MonadFailAny<'a>>::W<E>;
|
pub type FallibleMonad<'a, Ctx, E> = <<Ctx as FallibleCtx<'a>>::Fallible as MonadFailAny<'a>>::W<E>;
|
||||||
|
|
||||||
|
/// Preferred [Wrap]ped [Result].
|
||||||
|
pub type FallibleWrapped<'a, Ctx, A, E> = Wrap<'a, A, FallibleMonad<'a, Ctx, E>>;
|
||||||
|
@ -6,9 +6,6 @@ use crate::func::context::*;
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
/// Preferred [Wrapped] [Result].
|
|
||||||
pub type FallibleWrapped<'a, Ctx, A, E> = Wrap<'a, A, FallibleMonad<'a, Ctx, E>>;
|
|
||||||
|
|
||||||
/// Extention trait for simpler conversion between [`FunctorContext::T`] and [`Context::Fallible`].
|
/// Extention trait for simpler conversion between [`FunctorContext::T`] and [`Context::Fallible`].
|
||||||
///
|
///
|
||||||
/// Until either Rust type system or [`crate::func`] take serious changes,
|
/// Until either Rust type system or [`crate::func`] take serious changes,
|
||||||
|
Loading…
Reference in New Issue
Block a user