std::fallible

This commit is contained in:
AF 2023-04-24 19:41:43 +00:00
parent f832d7a997
commit 3cc868d8d3
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@
pub mod atomic; pub mod atomic;
pub mod cast; pub mod cast;
pub mod collections; pub mod collections;
pub mod fallible;
pub mod inlining; pub mod inlining;
mod local_origin; mod local_origin;
pub mod nullable; pub mod nullable;

7
src/std/fallible.rs Normal file
View File

@ -0,0 +1,7 @@
use crate::func::classes::{composition::*, result::*};
use super::*;
pub type FallibleMonad<Ctx, E> = CompositionClass<<Ctx as Context>::T, ResultClass<E>>;
pub type FallibleWrapped<'a, Ctx, A, E> = <FallibleMonad<Ctx, E> as WeakFunctor>::F<'a, A>;