Context constrain Fallible

This commit is contained in:
AF 2023-07-06 03:27:32 +00:00
parent 0834b5e0c8
commit 6a6e3609b3

View File

@ -3,7 +3,9 @@ use fail::*;
use super::*; use super::*;
/// Execution context. /// Execution context.
pub trait Context<'a>: FallibleCtx<'a, T = Self::_Tm> { pub trait Context<'a>:
FallibleCtx<'a, T = Self::_Tm, Fallible = <Self as Context<'a>>::Fallible>
{
/// Type to provide for [Monad]ic representation of computation, mostly that of resolution ([`Resolution`]). /// Type to provide for [Monad]ic representation of computation, mostly that of resolution ([`Resolution`]).
type _Tm: Monad<'a>; type _Tm: Monad<'a>;