-
Notifications
You must be signed in to change notification settings - Fork 347
Remove haskell-doc-prelude-types
from haskell-doc.el
#1179
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
Actually I was about to propose exactly opposite direction: that is NOT populating pragmas and extenstions dynamically from the It is just me who is bothered that the |
It's tedious but pretty simple. Can we even further and populate this things using Travis automatically when merging stuff in master branch? For example create some template files, and make Travis generate required lists running same command for custom set of compilers then run normal build and test routine and finally somehow commit these files to master? On other hand, how
I don't bothered with this, however I always keep this possibility in mind. |
Yes, automation is king. I think we should have a script that adds items to lists. So when a new compiler version is released all the missing flags or extensions are added to the list. Each item on the list could have attached a version of the compiler when it was seen first time. The lists should just accumulate stuff, so that completion can propose any of the options of any of the versions of a compiler. |
One last caveat how to generate keyword list or just leave it hard-coded? |
Hard coded. This does not change that often :) |
haskell-doc-prelude-types
from haskell-doc.el
Related #1194 |
Since we already rely on GHC output for supported language extensions and pragmas why not to drop
haskell-doc-prelude-types
fromhaskell-doc.el
? This could be done parsing output ofghc -e ':bro Prelude'
.One caveat: now
stack
allows multiple GHC versions without any global GHC compiler in PATH, I think we should add these variables to session when starting new interactive process and populate them runningstack exec -- ghc …
because different versions of GHC possibly could have different Preludes and options/extensions. Then in case of presence interactive session associated to current buffer completion and doc-string providers should use session variables instead of global ones.The text was updated successfully, but these errors were encountered: