Need a tutorial for using GHC to parse and typecheck Haskell

前端 未结 4 1717
执念已碎
执念已碎 2020-12-30 23:04

I\'m working on a project for analyzing Haskell code. I decided to use GHC to parse the source and infer types rather than write my own code to do that. Right now, I\'m sl

4条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 23:34

    If parsing is the most important thing, I recommend haskell-src-exts. It parses all of Haskell98, a whole pile of extensions and is very easy to use.

提交回复
热议问题