This commit is contained in:
Ayaz Hafiz 2023-09-12 11:49:26 -05:00 committed by Brendan Hansknecht
parent 34148645ae
commit c87e3e7413
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -241,6 +241,12 @@ fn to_inspector<'a>(env: &mut Env<'a>, at_opaque: &'a str) -> ast::Expr<'a> {
roc_module::called_via::CalledVia::Space,
));
// TODO: change the derived implementation to be something that includes the opaque symbol in
// the derivation, e.g. something like
//
// \@Opaq payload ->
// Inspect.opaqueWrapper "toString symbol" payload
// \@Opaq payload -> Inspect.toInspector payload
ast::Expr::Closure(
env.arena