lambdust 0.1.1

A Scheme dialect with gradual typing and effect systems
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::eval::Value;
use super::MockMonadicComputation;

/// Mock response for effect interpretation
#[derive(Debug, Clone)]
pub enum MockEffectResponse {
    /// Return a specific value
    Value(Value),
    
    /// Return an error
    Error(String),
    
    /// Return a monadic computation
    Computation(MockMonadicComputation),
    
    /// Delay and then return a value
    DelayedValue(Value, u64), // value, delay in ms
}