-
Notifications
You must be signed in to change notification settings - Fork 347
Implement support for Cabal CPP pragmas #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Agree. Technically |
injecting a |
Another trick is putting this in your |
How can I detect if ghci or cabal repl was used? |
How are you running GHCi? |
It is started by inferior-haskell I guess. I haven't used ghci for the modules which haskell-mode did not load. |
It has been over a ear since this issue was reported. It seems that todays |
I'll close this now. If you feel this is important just write below and we will reopen. |
When a file has a pragma with Cabal macros like
it would not loaded by the inferior haskell process because of
I suggest detecting this error message and issuing a command :set -optP-include -optPdist/build/autogen/cabal_macros.h as pointed out at http://stackoverflow.com/questions/12546757/how-do-i-use-cabals-min-version-and-other-macros-with-ghci
If the header file is absent, haskell-mode can run a cabal build.
The text was updated successfully, but these errors were encountered: