From a68aa104c91a617a2d78a1015f786dce7fdac795 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 5 Apr 2023 00:24:06 -0700 Subject: wip --- src/effects.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/effects.rs (limited to 'src/effects.rs') diff --git a/src/effects.rs b/src/effects.rs new file mode 100644 index 0000000..4c4c110 --- /dev/null +++ b/src/effects.rs @@ -0,0 +1,19 @@ +// Simple types for effects + +use crate::ast::*; + +// bad and wrong and useless +pub struct Effection { + expr: Expression, + effect: Effect, +} + +// yeah i'm not dealing with this yet +pub enum Effect { + Empty, + Total, + Exn, + Pure, + IO, +} + -- cgit v1.2.3-70-g09d2