-
Notifications
You must be signed in to change notification settings - Fork 347
Turn few customizable options to variables #736
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
Conversation
There is a possibility that someone might want these customised as a minimal subset that's supported by a range of GHC values (e.g. starts Emacs with ghc set to 7.10, at some point changes global settings so that /usr/bin/ghc points to 7.8 which has different supported extensions, etc.). That said, I think the likelihood of this is minimal and unlikely to cause any problems. I thought it should just be mentioned as part of the risk-assessment of changing this behaviour. |
@gracjan don't merge this, I want to clarify doc strings a bit. @ivan-m your statement sounds reasonable. Let me share my thoughts about this. If need to change some of these options I will do it imperatively rather than customizing these vars, because in the latter case my init file will grew up significantly as the list are too long, e.g. (setq haskell-ghc-supported-extensions (delete "whatever" haskell-ghc-supported-extensions)) Also, currently these vars are only used in completion functions, and I suppose few wrong completions are not critical, as you mentioned already. What about this: turn these options into vars and define two customizations, e.g. |
That makes sense to me. |
The proposed machinery requires a lot of effort that could be spend elsewhere. Just imagine the amount of tests you would need to write to make sure it works as expected and the amount of documentation explaining what is going on. I'm afraid I will not be able to agree to pull this complexity in for the sake of future haskell-mode contributors that will come after all of us three have moved on. |
@gracjan, so if I update doc string will you merge this? |
Yes. |
@gracjan updated |
Turn `haskell-ghc-supported-extensions` and `haskell-ghc-supported-options` into variable, move them outside customize package to haskell-mode one. Update doc strings a bit.
Baah. One more thing to check: does (Somebody asked what is a submarine dependency. Well, this is one example). |
Okay, I've checked this and no issues with shm. Lets proceed. |
Turn haskell-ghc-supported-(extensions|options) options to variables
Turn
haskell-ghc-supported-extensions
andhaskell-ghc-supported-options
into variables, move them outsidecustomize package to haskell-mode one.
Related to #730