Improve debug output

This commit is contained in:
Richard Feldman 2020-06-25 01:25:33 -04:00
parent 9faf47e5cd
commit 46c43da1de
2 changed files with 4 additions and 2 deletions

View file

@ -59,6 +59,8 @@ impl<'a> Layout<'a> {
) -> Result<Self, LayoutProblem> {
use roc_types::subs::Content::*;
eprint!("content: ");
match content.dbg(subs) {
FlexVar(_) | RigidVar(_) => Err(LayoutProblem::UnresolvedTypeVar),
Structure(flat_type) => layout_from_flat_type(arena, flat_type, subs, pointer_size),