Skip to content

Commit

Permalink
snapshots --> snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
aherrmann committed Sep 26, 2023
1 parent e15ef10 commit 9101cd6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
20 changes: 10 additions & 10 deletions example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9101cd6

Please sign in to comment.