summaryrefslogtreecommitdiff
path: root/src/effects.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects.rs')
-rw-r--r--src/effects.rs19
1 files changed, 19 insertions, 0 deletions
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,
+}
+