1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! **Stratum 0: Foundations** — the categorical bedrock upon which all effect abstractions rest.
//!
//! This module provides the primitive mathematical constructs that form the basis of the
//! effect system. Every higher-level abstraction (functors, monads, effects, streams) is
//! ultimately built from these foundations.
//!
//! ## Core Constructs
//!
//! | Module | Construct | Category Theory |
//! |--------|-----------|-----------------|
//! | [`unit`] | `()` | Terminal object |
//! | [`never`] | `Never` | Initial object |
//! | [`function`] | `identity`, `compose`, `const_` | Morphisms |
//! | [`product`] | `(A, B)`, `fst`, `snd`, `pair` | Categorical product |
//! | [`coproduct`] | `Either<L, R>`, `left`, `right` | Categorical coproduct |
//! | [`isomorphism`] | `Iso<A, B>` | Isomorphic objects |
//!
//! ## Practical Utilities (Effect.ts mirrors)
//!
//! | Module | Construct |
//! |--------|-----------|
//! | [`either`] | `Either<R,L>` alias + Effect.ts-named combinators |
//! | [`func`] | `identity`, `compose`, `memoize`, `tupled` (full set) |
//! | [`option_`] | Free functions over `Option<T>` |
//! | [`piping`] | [`Pipe`] trait (`x.pipe(f)`) |
//! | [`predicate`] | [`Predicate<A>`] composable boolean functions |
//! | [`mutable_ref`] | [`MutableRef<A>`] synchronous interior-mutable cell |
//!
//! ## Laws
//!
//! - **Identity**: `compose(f, identity) ≡ f ≡ compose(identity, f)`
//! - **Associativity**: `compose(f, compose(g, h)) ≡ compose(compose(f, g), h)`
pub use ;
pub use ;
pub use Iso;
pub use MutableRef;
pub use Never;
pub use Pipe;
pub use Predicate;
pub use ;
pub use Unit;