Skip to content
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

Make the flags passed to Stack match Cabal #1913

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

iteratee
Copy link
Contributor

Cabal uses '+' to enable a flag, and '-' to disable a flag. Stack builds a dictionary that has either 'flag: true', or 'flag: false'. The behavior before was passing inconsistent flags to the different tools. Have cabal.bzl handle all the flags that we could pass to cabal. This helps to aid people new to rules_haskell. It also allows negating a flag, which didn't work before.

@iteratee iteratee requested a review from avdv as a code owner June 27, 2023 17:18
Copy link
Member

@avdv avdv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@avdv
Copy link
Member

avdv commented Jun 29, 2023

@Mergifyio rebase

Cabal uses '+' to enable a flag, and '-' to disable a flag. Stack builds
a dictionary that has either 'flag: true', or 'flag: false'. The
behavior before was passing inconsistent flags to the different tools.
Have cabal.bzl handle all the flags that we could pass to cabal. This
helps to aid people new to rules_haskell. It also allows negating a
flag, which didn't work before.
@mergify
Copy link
Contributor

mergify bot commented Jun 29, 2023

rebase

✅ Branch has been successfully rebased

@avdv avdv force-pushed the kb/cabal-flags-plus-minus branch from fb9f356 to 926f079 Compare June 29, 2023 13:46
@avdv avdv merged commit c5335e6 into tweag:master Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants