by adamnemecek · 10y ago · 0 comments
[1] https://hackage.haskell.org/package/bound [2] https://github.com/ermine-language/ermine
I cannot recommend HOAS outside of very narrow areas.
Full disclosure: Brigitte Pientka was my supervisor. I did not work on the compiler, but I did make the language's logo.
[1] https://github.com/fritzo/hstar/blob/6df3347/src/DeBruijn.v#... [2] https://github.com/fritzo/pomagma/blob/ada575c/src/reducer/s...
https://stackoverflow.com/questions/22676975/simple-lambda-c...
Candidly, I find them a pain to write, but it is faster and integrates with the host language's type checker.
Maybe that's pretty non-standard. I like thinking of shallow-deep as a continuum, though.