Closed jstolarek closed 7 years ago
It probably makes sense to resolve #10 first. The reason is getConstrs
function used heavily by current Resugar
module - not worth putting effort into reworking code that will get deleted soon.
Fixed on branch js-resugaring
Current definition of
TyDecl
inAbsyn
is:But it doesn't make sense to have a list of constructors when we only allow to. This is problematic for pattern matching. We should refactor
TyDecl
to only allow two constructors. We'll revert to a list if we ever add support for more constructors.