Tooling-friendly ModSummary

2016-09-05 Thread Alan & Kim Zimmerman
At the moment the standard way to use the GHC API is something like _ <- load LoadAllTargets modSum <- getModSummary mn p <- parseModule modSum And likewise if renamed or typechecked ASTs are needed. But the `load` step alre

Re: Tooling-friendly ModSummary

2016-09-05 Thread Alan & Kim Zimmerman
And I gather I can do this with the compiler hooks. Alan On Mon, Sep 5, 2016 at 8:27 PM, Alan & Kim Zimmerman wrote: > At the moment the standard way to use the GHC API is something like > > _ <- load LoadAllTargets > modSum <- getModSummary mn >

Re: Tooling-friendly ModSummary

2016-09-05 Thread Edward Z. Yang
Hello Alan, SPJ and I both think that GhcMake is well overdue for a rewrite. But it's not altogether obvious what the rewrite should look like. I've made some remarks here: https://gist.github.com/ezyang/50004e0f842eec5848acad5cf1c22240 I'm OK with small, incremental changes that make tooling's