@@ -273,27 +273,31 @@ stack_snapshot(
273273 "temporary" ,
274274 ],
275275 setup_deps = {
276- "polysemy" : ["cabal-doctest" ],
277- # See https://github.com/tweag/rules_haskell/issues/1871
278- "HUnit" : ["@Cabal//:Cabal" ],
279- "bifunctors" : ["@Cabal//:Cabal" ],
280- "c2hs" : ["@Cabal//:Cabal" ],
281- "call-stack" : ["@Cabal//:Cabal" ],
282- "doctest" : ["@Cabal//:Cabal" ],
283- "generic-deriving" : ["@Cabal//:Cabal" ],
284- "happy" : ["@Cabal//:Cabal" ],
285- "hspec" : ["@Cabal//:Cabal" ],
286- "hspec-core" : ["@Cabal//:Cabal" ],
287- "hspec-discover" : ["@Cabal//:Cabal" ],
288- "hspec-expectations" : ["@Cabal//:Cabal" ],
289- "mono-traversable" : ["@Cabal//:Cabal" ],
290- "proto-lens-protoc" : ["@Cabal//:Cabal" ],
291- "proto-lens-runtime" : ["@Cabal//:Cabal" ],
292- "quickcheck-io" : ["@Cabal//:Cabal" ],
293- "transformers-compat" : ["@Cabal//:Cabal" ],
294- "type-errors" : ["@Cabal//:Cabal" ],
295- "typed-process" : ["@Cabal//:Cabal" ],
296- "unliftio-core" : ["@Cabal//:Cabal" ],
276+ name : deps
277+ for name , deps in {
278+ "polysemy" : ["cabal-doctest" ],
279+ # See https://github.com/tweag/rules_haskell/issues/1871
280+ "HUnit" : ["@Cabal//:Cabal" ],
281+ "bifunctors" : ["@Cabal//:Cabal" ],
282+ "c2hs" : ["@Cabal//:Cabal" ],
283+ "call-stack" : ["@Cabal//:Cabal" ],
284+ "doctest" : ["@Cabal//:Cabal" ],
285+ "generic-deriving" : ["@Cabal//:Cabal" ],
286+ "happy" : ["@Cabal//:Cabal" ],
287+ "hspec" : ["@Cabal//:Cabal" ],
288+ "hspec-core" : ["@Cabal//:Cabal" ],
289+ "hspec-discover" : ["@Cabal//:Cabal" ],
290+ "hspec-expectations" : ["@Cabal//:Cabal" ],
291+ "mono-traversable" : ["@Cabal//:Cabal" ],
292+ "proto-lens-protoc" : ["@Cabal//:Cabal" ],
293+ "proto-lens-runtime" : ["@Cabal//:Cabal" ],
294+ "quickcheck-io" : ["@Cabal//:Cabal" ],
295+ "transformers-compat" : ["@Cabal//:Cabal" ],
296+ "type-errors" : ["@Cabal//:Cabal" ],
297+ "typed-process" : ["@Cabal//:Cabal" ],
298+ "unliftio-core" : ["@Cabal//:Cabal" ],
299+ }.items ()
300+ if [d for d in deps if d != "@Cabal//:Cabal" ] or not GHC_VERSION or not GHC_VERSION .startswith ("9.6." )
297301 },
298302 stack_snapshot_json = "//:stackage_snapshot{}.json" .format (
299303 "_" + str (GHC_VERSION ) if GHC_VERSION else "" ,
0 commit comments