diff --git a/MODULE.bazel b/MODULE.bazel index 7b2d249..fab9f45 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -5,14 +5,14 @@ module( bazel_dep(name = "rules_haskell") -stack_snapshots = use_extension( +stack_snapshot = use_extension( "@rules_haskell//extensions:stack_snapshot.bzl", "stack_snapshot", ) -use_repo(stack_snapshots, "stackage") -stack_snapshots.package(name = "directory") -stack_snapshots.package(name = "filepath") -stack_snapshots.package(name = "json") +use_repo(stack_snapshot, "stackage") +stack_snapshot.package(name = "directory") +stack_snapshot.package(name = "filepath") +stack_snapshot.package(name = "json") non_module_deps = use_extension("//:non_module_deps.bzl", "non_module_deps") use_repo(non_module_deps, "io_tweag_gazelle_cabal_deps") diff --git a/example/MODULE.bazel b/example/MODULE.bazel index a5fa534..4cf7b96 100644 --- a/example/MODULE.bazel +++ b/example/MODULE.bazel @@ -8,26 +8,26 @@ bazel_dep(name = "rules_haskell_nix") bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go") bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle") -stack_snapshots = use_extension( +stack_snapshot = use_extension( "@rules_haskell//extensions:stack_snapshot.bzl", "stack_snapshot", ) -use_repo(stack_snapshots, "stackage", "stackage-exe") +use_repo(stack_snapshot, "stackage", "stackage-exe") # TODO these should be generated by Gazelle -stack_snapshots.package(name = "base") -stack_snapshots.package(name = "inspection-testing") -stack_snapshots.package(name = "mtl") -stack_snapshots.package(name = "tasty") -stack_snapshots.package( +stack_snapshot.package(name = "base") +stack_snapshot.package(name = "inspection-testing") +stack_snapshot.package(name = "mtl") +stack_snapshot.package(name = "tasty") +stack_snapshot.package( name = "tasty-discover", components = [ "lib", "exe:tasty-discover", ], ) -stack_snapshots.package(name = "tasty-hunit") -stack_snapshots.package(name = "text") -stack_snapshots.package(name = "void") +stack_snapshot.package(name = "tasty-hunit") +stack_snapshot.package(name = "text") +stack_snapshot.package(name = "void") # TODO replace this once a proper public interface for Nix provided Haskell toolchains exists. nix_haskell_toolchains = use_extension(