Boilerplate-free annotation of ASTs in Haskell?

后端 未结 4 996
攒了一身酷
攒了一身酷 2020-12-24 06:53

I\'ve been fiddling around with the Elm compiler, which is written in Haskell.

I\'d like to start implementing some optimizations for it, and part of this involves t

4条回答
  •  无人及你
    2020-12-24 07:28

    You can also use attribute grammars for annotations. If you need many different annotations, the grammars approach will scale better. There are few AG libraries and preprocessors on Hackage, one is uuagc which is used to build UHC/EHC Haskell compiler.

提交回复
热议问题