Using Bzlmod with Bazel 6+
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_haskell", version = "1.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_haskell",
sha256 = "4cae22bc84f327bf3cb7605021c3663160ff6bc8a0b7b6266062366bcbd19e79",
strip_prefix = "rules_haskell-1.0",
urls = ["https://github.com/tweag/rules_haskell/releases/download/v1.0/rules_haskell-1.0.tar.gz"],
)
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
rules_haskell_dependencies()
1.0 2024-09-23
Highlights
Added
- Support for unit-based hie-bios script for ghc 9.4+ (See #2218)
- Preliminary support for GHC 9.10.x (See #2198)
Fixed
Changed
- Use ghc 9.4.6 by default
- Use Bazel 6.5.0 by default (See #2117)
- Update nixpkgs revision to nixos-24.05,
note*: requires rules_nixpkgs version >= 0.12 (See #2217) - Asterius is deprecated and not tested anymore (See #2182)
- No longer create empty libraries (See #2158)
- Make static linking of haskell_cabal_binary explicit (See #2148)
Removed
- Testing GHC 9.2.x on CI