Conversation

Replying to
resugaring probably. are you thinking about the possibility of doing this in a structure preserving way or just making a morphism of this at all?
1
Hmm, not sure about what it would look like to do either of those. I wouldn't require `resugar(elaborate(concrete)) == concrete`, but I _would_ require `elaborate(resugar(core)) == core`, if that's what you're talking about?
1
Show replies
Replying to
I say delaboration only bc that's what it's called in the Idris compiler. I'm willing to spell it differently though. (de-elaboration, maybe?) Resugaring is only a specific kind of delaboration, so I don't think that should be the overall opposite of elaboration.
1
2
Show replies
Yeah, I used to use 'resugar' in another type checker, but that was before I had a proper elaborator, and really was just doing desugaring between the concrete and core languages, and type checking on the core.