Skip to content

Commit b469c79

Browse files
committed
examples: Add workaround for Cabal Paths issue
See #1871 Fixes #1419
1 parent 18991f9 commit b469c79

File tree

2 files changed

+39
-4
lines changed

2 files changed

+39
-4
lines changed

examples/MODULE.bazel

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,23 @@ stack_snapshot.package(
8383
"conduit",
8484
"conduit-extra",
8585
"hspec",
86-
# Remove hspec-* packages once https://github.com/tweag/rules_haskell/issues/1871 is resolved
87-
"hspec-core",
88-
"hspec-discover",
89-
"hspec-expectations",
9086
"optparse-applicative",
9187
"text",
9288
"text-show",
89+
# TODO(cb) remove these transitive deps once
90+
# https://github.com/tweag/rules_haskell/issues/1871 is resolved
91+
"bifunctors",
92+
"call-stack",
93+
"generic-deriving",
94+
"hspec-core",
95+
"hspec-discover",
96+
"hspec-expectations",
97+
"HUnit",
98+
"mono-traversable",
99+
"quickcheck-io",
100+
"transformers-compat",
101+
"typed-process",
102+
"unliftio-core",
93103
]
94104
]
95105

examples/WORKSPACE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,31 @@ stack_snapshot(
8080
"text",
8181
"text-show",
8282
],
83+
# TODO(cb) remove once we use Cabal >= 3.10.1 / GHC >= 9.6.1
84+
# See https://github.com/tweag/rules_haskell/issues/1871
85+
setup_deps = {
86+
pkg: ["@Cabal//:Cabal"]
87+
for pkg in [
88+
"bifunctors",
89+
"call-stack",
90+
"conduit",
91+
"conduit-extra",
92+
"generic-deriving",
93+
"hspec",
94+
"hspec-core",
95+
"hspec-discover",
96+
"hspec-expectations",
97+
"HUnit",
98+
"mono-traversable",
99+
"optparse-applicative",
100+
"quickcheck-io",
101+
"split",
102+
"text-show",
103+
"transformers-compat",
104+
"typed-process",
105+
"unliftio-core",
106+
]
107+
},
83108
# This example uses an unpinned version of stack_snapshot, meaning that stack is invoked on every build.
84109
# To switch to pinned stackage dependencies, run `bazel run @stackage-unpinned//:pin` and
85110
# uncomment the following line.

0 commit comments

Comments
 (0)