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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* SPDX-License-Identifier: MIT
* Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
*/
// ----------------------------------------------------
// Unbound Effect Traits (Parametric Effects | Arity 3)
// ----------------------------------------------------
use crate::;
/// Effect3Unbound: Parametric Effect Trait for Arity 3.
///
/// This trait allows for **Parametric Effects** (Type-State Pattern) where one effect component
/// (the State/Counter) can change its type during computation.
///
/// It fixes 1 parameter (e.g., Error) and leaves 2 parameters for the State transition (`S_in`, `S_out`),
/// plus the Value type `A`. This requires an Arity 4 witness (`HKT4Unbound`).
///
/// Structure: `Type<Fixed1, S_in, S_out, A>`
// ----------------------------------------------------
// Unbound Effect Traits (Parametric Effects | Arity 4)
// ----------------------------------------------------
/// Effect4Unbound: Parametric Effect Trait for Arity 4.
///
/// This trait allows for **Parametric Effects** where one effect component
/// (the State/Counter) can change its type, while two others (e.g., Error, Log) remain fixed.
///
/// Structure: `Type<Fixed1, Fixed2, S_in, S_out, A>`
/// This requires an Arity 5 witness (`HKT5Unbound`).
// ----------------------------------------------------
// Unbound Effect Traits (Parametric Effects | Arity 5)
// ----------------------------------------------------
/// Effect5Unbound: Parametric Effect Trait for Arity 5.
///
/// This trait allows for **Parametric Effects** where one effect component
/// (the State/Counter) can change its type, while three others (e.g., Error, Log, Trace) remain fixed.
///
/// Structure: `Type<Fixed1, Fixed2, Fixed3, S_in, S_out, A>`
/// This requires an Arity 6 witness (`HKT6Unbound`).