rewrote unification for data type and variable.

could definitely be wrong. have to double check
This commit is contained in:
sebastianselander 2023-03-24 18:48:40 +01:00
parent e500c70529
commit b08ae7aef1
3 changed files with 19 additions and 7 deletions

View file

@ -35,7 +35,12 @@ data List (a) where {
-- main = firstIsOne (Cons 1 Nil);
test xs = case xs of {
1 => 0;
lol => 1;
};
-- test xs = case xs of {
-- 1 => 0;
-- lol => 1;
-- };
deepList xs = case xs of {
Cons Nil _ => 1 ;
_ => 0 ;
};