Skip to content

Commit da4cf98

Browse files
committed
stack.package: docs: flag enable/disable syntax
While the "List of cabal flags" implies that `+flag` and `-flag` syntax can be used, it is somewhat subtle and requires knowledge of cabal flags syntax. Documenting it directly here would not hurt.
1 parent 621f3b6 commit da4cf98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/stack_snapshot.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ _package_tag = tag_class(
9292
"flags": attr.string_list(
9393
doc = """List of cabal flags to configure this package.
9494
Only usable by the root module (or rules_haskell itself).
95+
For a flag called `flag1`, to enable say `flag1` or `+flag1`, to disable say `-flag1`.
9596
""",
9697
),
9798
"extra_deps": attr.label_list(

0 commit comments

Comments
 (0)