mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Adding assignments to solver
This commit is contained in:
parent
44bdcdb3f3
commit
49cd2ede8a
4 changed files with 153 additions and 72 deletions
|
@ -2,8 +2,7 @@ use subs::Variable;
|
|||
use region::Region;
|
||||
use operator::Operator;
|
||||
use region::Located;
|
||||
use canonicalize::Symbol;
|
||||
use collections::MutMap;
|
||||
use collections::ImMap;
|
||||
|
||||
type ModuleName = String;
|
||||
|
||||
|
@ -56,9 +55,9 @@ pub enum Constraint {
|
|||
pub struct LetConstraint {
|
||||
pub rigid_vars: Vec<Variable>,
|
||||
pub flex_vars: Vec<Variable>,
|
||||
pub header: MutMap<Symbol, Located<Type>>,
|
||||
pub header_constraint: Constraint,
|
||||
pub body_constraint: Constraint,
|
||||
pub assignment_types: ImMap<String, Located<Type>>,
|
||||
pub assignments_constraint: Constraint,
|
||||
pub ret_constraint: Constraint,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue