Using bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in .bazelrc
.
- Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_haskell", version = "0.18")
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_haskell",
sha256 = "d1f0e1bd4f1d5e248b2882bfdc7c31a146112f9d85b9d2f0ef77e78d02ecba45",
strip_prefix = "rules_haskell-0.18",
url = "https://github.com/tweag/rules_haskell/releases/download/v0.18/rules_haskell-0.18.tar.gz",
)
Highlights
Changed
- Use GHC 9.2.8 by default (See #1994)
- Use Bazel 6.4.0 by default (See #2063)
start
script supports bzlmod with bindists (See #2046)
- Support Python Windows App aliases (See #2060)
Fixed
- Error using
snapshot
tag from stack_snapshot module extension (See #2001)
- Build gi-gtk from stackage (See #1752)
- X is not a toolchain library (See #1920)
Removed
- GHC versions < 8.10 are no longer supported (see #2093)
- remove
compiler_flags
option which was deprecated since 0.14 from macros and rules
- remove
<name>-repl
aliases for repl targets introduced in 0.7
- remove deprecated nixpkgs platform aliases introduced in 0.13