-
Notifications
You must be signed in to change notification settings - Fork 25
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
Cabal sandbox not being used #27
Comments
I was able to get things working with Chris Done's flycheck-haskell which uses ghci instead of ghc: https://github.com/chrisdone/haskell-flycheck I don't think this runs hlint though. |
@lukehoersten It chains to the built-in hlint checker, so hlint should run either way. As for the actual issue, please show me the output of |
|
@chrisdone and I have done some work to bring his chrisdone/haskell-flycheck#1 up to snuff. Basically modern |
@lukehoersten That's the output of the error list, not of With regards to haskell-flycheck: This extension does not actually implement a syntax checker. It merely configures the built-in GHC syntax checker of Flycheck accordingly. Flycheck itself will never use Haskell Interactive Mode for syntax checking: I want no dependencies on specific 3rd party modes in Flycheck, and it's too much code for me to maintain anyway. We could merge this extension with Chris' syntax checker, though, and distribute it as one package on MELPA. But in any case, the standard GHC syntax checker and the functionality provided by this extension will stay. Not everyone uses Interactive Haskell Mode… |
|
@lukehoersten Ad 1) Closing as invalid then. Ad 2) Exactly. I do not want to depend on Emacs Lisp functionality from other modes. That'd open a kitchen sink, and amount to more code than I could reasonably maintain. For this reason, I prefer to have syntax checkers with such dependencies in external packages. |
OK that makes a lot of sense. Can we do what you suggested then and add the |
@lukehoersten Yes, if @chrisdone agrees. |
I'm okay with merging this into flycheck-haskell if it unifies a common thing and avoids confusion. I'm concerned about pissing off your users by swapping out the backend with something that requires starting a session and ghci (things that people regularly complain about as being such a chore). |
I was thinking |
@lukehoersten What do you mean with “conditional dependency”? This extension already depends on Haskell Mode. @chrisdone With a proper predicate, Flycheck won't use the checker unless there is a session already. Is there a function that checks whether the current Haskell Mode has an interactive session attached? |
There's |
@chrisdone That looks like the right function to call, i.e. |
My user package database has transformers-0.3 and my sandbox package database has transformers-0.4 but flycheck-haskell is transformers-0.3 and incorrectly reporting errors. I suspect the user package database is taking precedence over the sandbox package db but it shouldn't.
The text was updated successfully, but these errors were encountered: