-
Notifications
You must be signed in to change notification settings - Fork 84
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
Regression in 2.0: cabal v1-install happy
fails with mysterious interface error
#315
Comments
cabal v1-install happy
fails with mysterious interface error
`cabal v1-install happy` does not work any longer: haskell/happy#315
`cabal v1-install happy` does not work any longer: haskell/happy#315
What limits the impact of this regression is that So maybe all that is to be done here is to bug the Cabal developers to handle the situation of internal-libraries with v1-install properly as opposed to just driving by GIGO. |
I'm beginning to think that So I propose the following:
|
A low maintenance alternative might be to instead add commented imports. Easier exemplified than explained. > import Happy.Grammar () -- See Note [Separation dependency] (I see that This dependency expresses that the "top" module in the dependency hierarchy of Another example: In > import Happy.Tabular () -- See Note [Separation dependency] and so on. Now, if there's ever a violation of the separation that the package declarations would enforce, we will get a cyclic import error. |
v2- commands have been the default in cabal-install for a while now. I'm not at all worried about compatibility with v1- commands, which will eventually get removed/deprecated anyway. |
Yes in general I am sympathetic that we can only get away with saying "actually it's a Cabal bug" so many times, but in this case I agree with @int-index, I have no sympathy for anyone that insists on using v1 commands in 2024. And indeed no on at the Agda side was actually insisting on this. agda/agda#4627 (comment) I left this comment because I think the Agda comment is just plain out of date at this point. |
I'm hesitant if it's a good idea for us to make an unforced change that in turn forces hundreds of Agda users to change their workflows... I would rather hear from other Agda users that they are fine with |
@sgraf812 Well they already changed their CI? It's not clear to me at least that they want anything more from us. |
Well, the comment you cited indicated that the Agda team recommends its users to install Agda with Although upon searching in https://agda.readthedocs.io/en/latest/, there aren't that many mentions of As I said, we should ask people who know how many people are affected by this. Ah, it may be that Agda users aren't really affected by this because |
Yeah I am fine waiting too. But my guess is this is basically a stale comment (that, according to the one person, linked the wrong issue too). I imagine we'll all be a bit confused at first :). |
So yes, what I was trying to say is that it should not be a big problem for Agda users, as the official installation instructions do not recommend |
I'm inclined to close this issue as won't fix then. Feel free to reopen if you think your |
Lifted from:
CI failure due to happy-2.0: https://github.com/agda/agda-stdlib/actions/runs/11030950764/job/30636656269#step:6:34
So it looks like
v1-install
does not work forhappy
anymore.Maybe we should reconsider using the interal libraries feature that cabal does not support fully yet.
A proper support by cabal would be at least an error message stating that
v1-install
does not work with internal libraries.The text was updated successfully, but these errors were encountered: