carymrobbins / intellij-haskforce

Haskell plugin for IntelliJ IDEA
http://carymrobbins.github.io/intellij-haskforce/
Apache License 2.0
486 stars 39 forks source link

ghc-mod not picking up cabal settings #53

Open pjonsson opened 10 years ago

pjonsson commented 10 years ago

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 commented 10 years ago

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

carymrobbins commented 8 years ago

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.