intellij-haskforce
intellij-haskforce copied to clipboard
ghc-mod not picking up cabal settings
Not sure if this is our fault or a problem upstream, so reporting it here for starters.
https://github.com/Feldspar/feldspar-language needs -fcontext-stack=100 which is specified in the cabal file. ghc-mod does not seem to pick that up automatically, so Constructs.hs:217 gets a red mark on render relating to that context-stack overrun.
I'm using ghc-mod 5.0.1 compiled with ghc 7.8.3. I didn't need the context stack parameter with ghc 7.6.x.
This ticket is blocked on the second bullet of #28.
This can be achieved similarly to how it is done for #56. However, one prerequisite will be to have a different instance of ghc-modi running for each cabal component instead of one for each IntelliJ module.
- These could be spawned lazily and possibly garbage collected.
- Another added benefit to making this change will be removing the requirement of having one IntelliJ module per Cabal file (also helping resolve #222).
- It could more than likely be implemented as a
ProjectComponent, similar to HaskellCompletionCacheLoader.