aboutsummaryrefslogtreecommitdiff
path: root/src/type/mod.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-10 18:38:49 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-10 18:38:49 +0300
commit06798d622327707ca3f3b42d65fc3d1a25ae3c57 (patch)
treec230f8ffc43f34a4077cf71b480e93357dbb24b1 /src/type/mod.rs
parent2274a96d1cbd7a5b89bb6b5f51f6bbb0a0513587 (diff)
downloadmyslip-06798d622327707ca3f3b42d65fc3d1a25ae3c57.tar.gz
myslip-06798d622327707ca3f3b42d65fc3d1a25ae3c57.zip
Added term level type literals (for function type signatures)
Diffstat (limited to 'src/type/mod.rs')
-rw-r--r--src/type/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/type/mod.rs b/src/type/mod.rs
index 9c2f89c..c138bba 100644
--- a/src/type/mod.rs
+++ b/src/type/mod.rs
@@ -17,6 +17,8 @@ pub enum Type {
Boolean,
+ TypeLit,
+
QuoteTy, //constructor
Arrow(Box<Type>, Box<Type>),
@@ -111,6 +113,7 @@ impl Type {
VecType => Ok(()),
LetType => Ok(()),
NilType => Ok(()),
+ TypeLit => Ok(()),
Arrow(a, b) => b.is_concrete().and_then(|_ok| a.is_concrete()),
List(v) => {
let mut res = Ok(());