id_effect_fp 0.13.0

Functional-programming toolkit for id_effect: algebraic type classes, persistent collections, STM (maintenance tier)
Documentation
//! **Stratum 1: Algebraic Structures** — abstract patterns that recur throughout the system.
//!
//! This module provides the fundamental algebraic abstractions built on top of
//! [Stratum 0 foundations](super::foundation). These structures capture common
//! patterns of composition, transformation, and combination.
//!
//! ## Hierarchy
//!
//! ```text
//!                    Semigroup
//!                        │
//!                        ▼
//!                     Monoid
//!
//!     Contravariant   Functor   Bifunctor
//!                        │
//!                        ▼
//!                   Applicative
//!                        │
//!                        ▼
//!                      Monad
//! ```
//!
//! ## Design Notes
//!
//! Rust lacks higher-kinded types, so we use two complementary approaches:
//!
//! 1. **Traits with associated types** — for types with a single "mappable" parameter
//! 2. **Module functions** — for operations on concrete types (like `Option`, `Result`)
//!
//! The traits express the *structure*, while module functions provide ergonomic usage.

pub mod alternative;
pub mod applicative;
pub mod bifoldable;
pub mod bifunctor;
pub mod contravariant;
pub mod foldable;
pub mod free_ap;
pub mod functor;
pub mod invariant;
pub mod law_test;
pub mod monad;
pub mod monoid;
pub mod selective;
pub mod semigroup;
pub mod traversable;

pub use applicative::Applicative;
pub use bifunctor::Bifunctor;
pub use contravariant::Contravariant;
pub use free_ap::FreeAp;
pub use functor::Functor;
pub use monad::Monad;
pub use monoid::Monoid;
pub use selective::Selective;
pub use semigroup::Semigroup;

pub use alternative::Alternative;
pub use foldable::Foldable;
pub use invariant::Invariant;
pub use traversable::{sequence_vec, traverse_option, traverse_vec};