-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Mixins are not accounted when trying to hide Prelude #823
Comments
This might be linked, since |
I have some severe issues with making
Tried |
Sorry, I meant However, |
I think it could be |
If there are other issues with I suppose I will report an issue in |
Problem
In one of the projects, we are trying to use
mixins
feature to hide the defaultPrelude
module and provide our own, in overall this looks likeHowever, it looks like hiding
Prelude
does not work, because with ghcide I get the following errorReproduction
I can reproduce this in the Morley repository, commit
e9a00b61bb
.It has
morley-prelude
package used as a custom prelude. When I open some of the depending packages, e.g.code/morley/src/Util/Text.hs
file frommorley
package, I get the mentioned error for all modules.There are other packages using
morley-prelude
where the problem reproduces, e.g.morley-ledgers
has much less modules (in case that is helpful), but it appears in a different repository.Side comments
Indeed, one of the options for us would be just not using mixins and instead use
base-noprelude
. We are going to apply this as a temporary workaround, though it would be nice if this feature is eventually supported.I'm not sure how problematic this may be to fix, since it is a known issue that even
stack ghci
does not work with mixins properly, but would be nice to at least know your plans on this.The text was updated successfully, but these errors were encountered: