-
Notifications
You must be signed in to change notification settings - Fork 697
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
Stop using Prelude at all in autogenerated Paths_<packageName>.hs modules #7761
Comments
Completely disabled
Note, we cannot even use PackageImports, to make sure we import things from I don't see a better alternative then making We kind of rely that |
Another idea, which is also not that nice but also not completely awful, is to ask alternative prelude users to use following idiom:
Here, This however won't work today, as EDIT: maybe one can make it work today using mixins and renaming the module, but that will break |
Well maybe it is not the optimal solution but maybe using |
It won't. if you have a package which depends only on please remember, that all intermediate solutions in |
right, thanks for the reminder, i usually forget that caveat jumping from recent cabal-install changes |
Hrm. Is it possible to teach cabal's builder to just not use the alternate prelude flags when compiling the paths module in particular, and also to always link it to base? I.e. to special-case the compilation of the paths module, instead of the settings within it? |
@gbaz, not really.
What I propose in #7761 (comment) is essentially "compiling EDIT: I don't expect #6452 be hard to implement. It's also easy to test. And would make |
Sounds good -- so just fixing the above ticket and documenting explicitly your suggestion in 7761 in the cabal docs sounds like the way to go. |
Afaiu that was also the suggestion in #1170 |
The text was updated successfully, but these errors were encountered: