intellij-haskforce icon indicating copy to clipboard operation
intellij-haskforce copied to clipboard

ghc-mod not picking up cabal settings

Open pjonsson opened this issue 11 years ago • 2 comments

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.

pjonsson avatar Aug 21 '14 20:08 pjonsson

This ticket is blocked on the second bullet of #28.

pjonsson avatar Aug 24 '14 23:08 pjonsson

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.

carymrobbins avatar Jun 27 '16 01:06 carymrobbins