zhc_utils 0.3.0

Shared utilities for the ZHC compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::Serialize;

pub type StackId = usize;
pub type StackMember = String;

#[derive(Serialize, Debug, Clone)]
#[serde(untagged)]
pub enum MaybeStackTrace {
    Stack { stack: Vec<StackMember> },
    StackFrame { sf: StackId },
    None,
}