feat: figured out starmelon needs expr types

To generate partial application boxed closures I need to know the arity
of the expression to tell if more args will remain after the given args.
Right now I think I can recalculate the types if I have a symbol table
where I can look up every variable. I think this will be a lot of work
because I have to reimplement most of unification to deal with
collections, patterns, and type variables. And I currently don't know
how unification works.
This commit is contained in:
YetAnotherMinion 2021-12-29 14:57:35 +00:00 committed by nobody
commit 2e78b33524
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
4 changed files with 223 additions and 31 deletions

View file

@ -68,7 +68,12 @@ pub fn load_interfaces(
elmi::DependencyInterface::Public(interface) => {
interfaces.insert(module_name, interface);
}
_ => {}
elmi::DependencyInterface::Private(package_name, unions, aliases) => {
println!("skipping private interface {}", package_name);
//for (k, v) in unions {
// println!(" {}", k);
//}
}
}
}
}