-
Notifications
You must be signed in to change notification settings - Fork 701
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
Check that new-build works with ghc-mod/haskell-mode #3731
Comments
Would be also nice to patch |
I discussed integration with ghc-mod and leksah with their authors at MuniHac. They're planning to file a ticket discussing what info and interface they'd like to get extra info out of Note that leksah now uses cabal new-build as their default build system so we can @hamishmack & @jaccokrijnen for testing & feedback. |
Related: #2771. |
Would it not be possible (and probably simpler) to have, either a hacked On 8 September 2016 at 12:42, Mikhail Glushenkov [email protected]
|
maxigit: Yes, it would be very simple. Or even an environment variable to change the sense of the flags. Actually a fix like that should probably go in 2.0. @maxigit do you think you could take a swing at this? |
I'm thinking of a file instead of environment variable because it's allows to be set by project within the same environment. For example, I use Spacemacs, which is run globally and I switch for one project or another (by switching buffer). I can try to have a go, but I am really busy. I am considering writing a generic wrapper to do a similiar thing but for any executable, as well as changing the executable itself. This will solve the ghc-mod problem, when you need to change the version according to the version of GHC. |
A generic wrapper sounds like it would be easier for you to do, and would help you do other stuff. We could then mention it in the documentation as a way to interact with new-build. (Doing this as a setting in cabal.project doesn't sound easy, it doesn't get parsed and read early enough to affect command dispatch.) |
I've done a generic wrapper, called Crew. It's not battle tested but seems to work for my use case (which is use "cabal build" key binding in spacemacs. Comments are welcome. |
Thanks @maxigit! |
Assuming that you modify these to invoke
cabal new-build
rather thancabal build
, do they work? Would be good to test.CC @maxigit
The text was updated successfully, but these errors were encountered: