-
-
Notifications
You must be signed in to change notification settings - Fork 389
Extract the GHC.Compat modules to a standalone package #2454
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
|
+1, would reduce the amount of CPP in e.g. hiedb. However, extracting it in a reasonable format is a bit tricky. I propose that it needs to fit the concrete needs of ghcide for now, providing a backwards compat package for everyone will be just a nightmare to maintain. |
Right, i think we should carefully focus the scope of the library, as |
Let me elaborate on what I have in mind here:
@fendor can you elaborate on what would be tricky about extracting it? @jneira can you be more specific on what problems has |
Perfect.
Nothing tricky implementation wise.
I think our GHC Compat has at least one significant design goal: We go with the latest GHC API (E.g. UnitId vs Unit vs InstalledUnit), all older GHC's try to satisfy the new API (I think that's roughly forward compatibility?). This way we can easily drop old GHC versions and can still experiment with the latest features. |
One more thing I just remember is that when we extract This would be a great step towards having some minimal IDE available immediately after a GHC release. |
ghcide
comes with a custom GHC compatibility library that covers from 8.6 to 9.2 thanks to the recent summer project by @fendor.Extracting these modules to a standalone package would enable reuse in other projects.
The text was updated successfully, but these errors were encountered: