-
Notifications
You must be signed in to change notification settings - Fork 112
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
Backpack mixins works except for module hiding #327
Comments
Hmm, this looks suspiciously relevant. |
Does |
Yes, it does. I even copied and pasted the default Using
|
I'm confused. You are saying |
There's the separate issue of whether ghcid defaults to the right thing - which is worth addressing - but I suggest we figure out how to get it working manually first, and then see about updating the defaults. |
Yes, EDIT: just tried |
Yes, the cabal v2-exec sets up things such that cabal v2-repl doesn't work. I imagine |
Yep, sure enough that breaks in the same way. Not sure if I should leave this issue open (with a new title and edited first comment). It still seems like buggy, or at least surprising, behaviour to me. I'm so used to prepending Maybe that was the wrong thing in this case, anyway, since I didn't put |
Maybe open it upstream on the Cabal github tracker? Since it seems like it's their issue underneath. |
I'm gonna close this, and defer the decision of whether to open a new issue linked to this one to you. I've spent too long on this, even tried to hack up a FIFO-based solution, but ran into this issue any time I tried to run a function when running with
|
If you have |
Ah, I see now that |
Hi,
I have a Cabal file with a
mixins
field set to:If I run
ghcid
like so:or
it results in an error message like this:
This is a new project, so I'm not using the modules yet, just importing them, so I can remove the
mixins
field and observe that everything works as expected. I can also keep themixins
field and just runcabal v2-repl
and again, everything works as expected.Changing
base hiding (Prelude)
tobase (Prelude as SomeRandomOtherModuleName)
doesn't help either; I get the same exact error message, which is weird, because it suggests it's picking up the Protolude -> Prelude mapping, but not the Prelude -> SomeRandomOtherModuleName mapping (or maybe it's both retaining the old names and picking up the new names?).The text was updated successfully, but these errors were encountered: