File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2746,7 +2746,8 @@ def use_stack(stack):
2746
2746
Globally override the `stack` version used by all instances of `stack_snapshot`.
2747
2747
WARNING: This should only be used in the top-level repository.
2748
2748
2749
- Example:
2749
+ ### Examples
2750
+ ```
2750
2751
# WORKSPACE
2751
2752
2752
2753
# Order is important! Placing `use_stack()` after any occurrence of `stack_snapshot`
@@ -2758,13 +2759,16 @@ def use_stack(stack):
2758
2759
stack = "@y_stack:stack",
2759
2760
# ...
2760
2761
)
2762
+ ```
2761
2763
2762
- # BUILD
2764
+ ```
2765
+ # BUILD.bazel
2763
2766
haskell_binary(
2764
2767
# ...
2765
2768
# targets in `x` will be built using `x_stack`, NOT `y_stack`
2766
2769
deps = ["@x//:all"],
2767
2770
)
2771
+ ```
2768
2772
"""
2769
2773
if native .existing_rule ("rules_haskell_stack" ):
2770
2774
fail ("`rules_haskell_stack` already defined. call `use_stack()` before `stack_snapshot()` in `WORKSPACE`" )
You can’t perform that action at this time.
0 commit comments