Closed jstolarek closed 7 years ago
I have no idea how to resugar call traces:
| TCall Trace Trace (Maybe Lab) (Code Trace)
Resugar both arguments to application and ignore the body? Resugar the body and ignore application arguments?
Ok, I think I got this.
Fixed on branch js-slicing-h4x
Reopening.
I just realized that Resugarable
instance for Trace
duplicates logic of uneval
from Slice
module. So I guess that it would be easier if resugarM
definition for Trace
called uneval
and then we can piggyback on the fact that we already have an instance of Resugarable
for Exp
.
This might be useful to display results of slicing. It might be useful to have a type-class for things that can be resugared:
See also #24