-
Notifications
You must be signed in to change notification settings - Fork 696
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
main-is: inside two-way if/else: Ambiguous values for modulePath field #9659
Comments
Works here, cabal HEAD. Works with your
|
my reproducer for 3.10.2.0 : https://git.imn.htwk-leipzig.de/waldmann/cabal-9659/-/jobs/39798 |
Note, this does not appear to be a check error anymore:
It looks like both sides of the conditional get evaluated and merged in the install command, not the check command. Maybe we're not evaluating conditionals right in that stanza? |
Thanks for providing the reproducer. Indeed I mistakenly thought the error was triggered by
Offending code is a broken Semigroup instance: cabal/Cabal-syntax/src/Distribution/Types/Executable.hs Lines 40 to 49 in b99a830
which I suspect it is getting called via |
That sounds right. I was going to suggest we use |
|
Describe the bug
cabal file containing
is rejected with
To Reproduce
Expected behavior
builds
System information
Additional context
with cabal-install 3.10.2.1, the problem can be repaired with indenting
else
, see. ucsd-progsys/liquidhaskell#2258 (comment) but cabal-install-3.11 will reject that withThe text was updated successfully, but these errors were encountered: