Print bare data constructor
This commit is contained in:
parent
3f2fff276c
commit
196954326e
@ -77,6 +77,7 @@ impl Expr {
|
||||
UserDefined { name: None, .. } => format!("<function>"),
|
||||
UserDefined { name: Some(name), .. } => format!("<function {}>", name),
|
||||
},
|
||||
Expr::Constructor { name } => format!("<constructor {}>", name),
|
||||
Expr::Tuple(exprs) => paren_wrapped_vec(exprs),
|
||||
_ => format!("{:?}", self),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user