Add some tracing for debug purposes

This commit is contained in:
Ayaz Hafiz 2022-09-07 12:42:46 -05:00
parent 6e64bfc513
commit 15f66e3eaa
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 4 additions and 0 deletions

View file

@ -653,6 +653,8 @@ impl<'a> Env<'a> {
}
fn add_type(&mut self, var: Variable, types: &mut Types) -> TypeId {
roc_tracing::debug!(content=?roc_types::subs::SubsFmtContent(self.subs.get_content_without_compacting(var), self.subs), "adding type");
let layout = self
.layout_cache
.from_var(self.arena, var, self.subs)