mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Consolidate exposed types and derived module in a derived environment
This commit is contained in:
parent
0ec92c12f7
commit
76fe397aa1
3 changed files with 26 additions and 26 deletions
|
@ -11,7 +11,7 @@ use roc_derive::SharedDerivedModule;
|
|||
use roc_error_macros::internal_error;
|
||||
use roc_module::symbol::ModuleId;
|
||||
use roc_solve::solve::Pools;
|
||||
use roc_solve::specialize::{compact_lambda_sets_of_vars, Phase};
|
||||
use roc_solve::specialize::{compact_lambda_sets_of_vars, DerivedEnv, Phase};
|
||||
use roc_types::subs::{get_member_lambda_sets_at_region, Content, FlatType, LambdaSet};
|
||||
use roc_types::subs::{ExposedTypesStorageSubs, Subs, Variable};
|
||||
use roc_unify::unify::{unify as unify_unify, Env, Mode, Unified};
|
||||
|
@ -273,15 +273,18 @@ pub fn unify(
|
|||
let mut pools = Pools::default();
|
||||
|
||||
let late_phase = LatePhase { home, abilities };
|
||||
let derived_env = DerivedEnv {
|
||||
derived_module,
|
||||
exposed_types: exposed_by_module,
|
||||
};
|
||||
|
||||
let must_implement_constraints = compact_lambda_sets_of_vars(
|
||||
subs,
|
||||
derived_module,
|
||||
&derived_env,
|
||||
arena,
|
||||
&mut pools,
|
||||
lambda_sets_to_specialize,
|
||||
&late_phase,
|
||||
exposed_by_module,
|
||||
);
|
||||
// At this point we can't do anything with must-implement constraints, since we're no
|
||||
// longer solving. We must assume that they were totally caught during solving.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue