agda / agda2hs

Compiling Agda code to readable Haskell

Home Page:https://agda.github.io/agda2hs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for let bindings and as patterns

jmchapman opened this issue · comments

Add support for let bindings and as patterns

This close to impossible to support with the current architecture of Agda: as patterns are treated as let-bindings, and let-bindings are inlined eagerly in the internal syntax. So we would have to somehow reconstruct which terms correspond to a let-bound variable.

Actually, let-bindings do not work either, for the same reason.