I was playing around with the Idris semantic pretty printer (on Idris HEAD) to get semantically highlighted Idris code, and noticed that Idris now applies sugaring during the process. For example, the command:
I'm wondering if this is expected behaviour or 'teething' issues w.r.t. to the implementation. I would have imagined that both commands would either be sugared or left desugared.
This is funny! I think it's because S (S (S Z)) is seen as an expression to pprint, whereas Z is seen as a definition without an RHS. Perhaps it needs a bit more thought there!
I was playing around with the Idris semantic pretty printer (on Idris HEAD) to get semantically highlighted Idris code, and noticed that Idris now applies sugaring during the process. For example, the command:
produces
and not
while
produces
I'm wondering if this is expected behaviour or 'teething' issues w.r.t. to the implementation. I would have imagined that both commands would either be sugared or left desugared.