fpco / ide-backend

ide-backend drives the GHC API to build, query, and run your code
120 stars 17 forks source link

Recursive deps currently require the whole configGenerateModInfo feature #86

Open Mikolaj opened 11 years ago

Mikolaj commented 11 years ago

Recursive deps (required at least by the license concatenation feature) currently require the whole configGenerateModInfo feature, which enables our custom source plugin with all traversals, passes and gathering of type info. They could be obtained with a much cheaper setting of the source plugin.

This is a low priority optimization.

edsko commented 11 years ago

Actually, it's a bit more tricky than that. We get the recursive dependencies from ghc, but only as part of the TcGblEnv, which we get only for modules that successfully typecheck. So for modules that don't compile, the plugin won't run at all. That's probably not an issue for building, but it might be an issue for other applications of the recursive deps.