TypeEnvironment lives in Infer
This commit is contained in:
parent
c96a56a7ac
commit
3a3b8dd440
@ -141,7 +141,7 @@ impl Substitution {
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Default)]
|
||||
struct TypeEnvironment {
|
||||
map: HashMap<Rc<String>, PolyType>,
|
||||
}
|
||||
@ -272,6 +272,7 @@ impl TypeContext {
|
||||
// this is the equivalent of the Haskell Infer monad
|
||||
#[derive(Debug, Default)]
|
||||
struct Infer {
|
||||
env: TypeEnvironment,
|
||||
_idents: u32,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user