You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cabal-version check doesn't happen early enough #4448
Error:
Mix-in refers to non-existent package 'wl-pprint-indef'
(did you forget to add the package to build-depends?)
In the stanza 'executable wl-pprint-string-example'
In the inplace package 'wl-pprint-indef-1.2'
But everything exists. In fact, the problem is that cabal-version is not set high enough to get the correct semantics in this case.
I'm not sure if the correct fix is to move cabal-version sanity checking earlier, or to add a little extra logic to the cabal-version dependent bits of mixin linking to give a warning when something has gone wrong, but something is worth doing here.
Is this something that can be handled in cabal check? or can this be even caught by the parser? i.e. can this be detected statically by looking at the .cabal file?
Activity
hvr commentedon Dec 9, 2017
Is this something that can be handled in
cabal check? or can this be even caught by the parser? i.e. can this be detected statically by looking at the.cabalfile?/cc @phadej
phadej commentedon Dec 9, 2017
New parser framework has
sinceannotations. They just don't do anything right now, I'll check this solnImplement availableSince.
Implement availableSince.
Implement availableSince.
Implement availableSince.
Implement availableSince.
Implement availableSince.
Implement availableSince.
phadej commentedon Dec 25, 2017
Fixed in #4971 / #4953.
mixins/signaturefields are warned about if notcabal-version: 2.0or laterezyang commentedon Dec 25, 2017
Thank you @phadej! You rock.