Skip to content

Prepare release 0.17 #1981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ about: Steps to work through in order to publish a new release
[`docs/haskell-use-cases`][usecases] to the current release
preparation branch; comment out the checksum. (n.b., Search for
`http_archive` in these files.)
- [ ] Update the version of the modules in `MODULE.bazel` files
- [ ] Push the `release-<major>.<minor>` branch and open a **draft** PR
to verify CI is green.
- [ ] Create a release tag (`v<major>.<minor>`) on the release
Expand Down
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,36 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/).

## [Unreleased]
## [0.17] 2023-10-19

[0.17]: https://github.com/tweag/rules_haskell/compare/v0.16...v0.17

### Highlights

* Support Bazel's new "bzlmod" dependency system
* Support GHC 9.2.x and 9.4.x

### Changed

* The minimum supported Bazel version is now 6.0.
* IDE support : Output absolute paths in hie-bios flags (See https://github.com/tweag/rules_haskell/pull/1862)
- `haskell_repl` now defines an extra runable target `name@bios` that outputs the hie-bios flags.
- `hie_bios_path_prefix` attribute for `haskell_repl` is a no-op now that we use absolute paths.
* `build_bazel_rules_nodejs` dependency is replaced by `rules_js` which induces some changes to the experimental Asterius support (See [#1884]).
* Replace use of `exec_tools` with semantically-identical `tools` (see https://github.com/tweag/rules_haskell/pull/1925)
* GHC 9.2 and 9.4 are supported and tested, older GHC releases only supported on a best effort basis (see [#1878])

[#1878]: https://github.com/tweag/rules_haskell/issues/1878

### Fixed

* Make the flags passed to Stack match Cabal (see https://github.com/tweag/rules_haskell/pull/1913)
* Fix include directories passed to hsc2hs (see https://github.com/tweag/rules_haskell/pull/1922)

### Added

* Add support for Bazel 6
* Add support for bzlmod (see https://github.com/tweag/rules_haskell/issues/1864)
* The provided `cc_toolchain` used for windows can now be used with `--incompatible_enable_cc_toolchain_resolution` so using the `crosstool_top` option is no longer necessary.
* Add support for GHC 9.2.5 (see [#1869])
* Add support for GHC 9.4.5 (linux, macOS) and GHC 9.6.1 (see [#1890])
Expand All @@ -26,7 +44,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

* Remove support for Bazel 4


## [0.16] 2022-12-06

[0.16]: https://github.com/tweag/rules_haskell/compare/v0.15...v0.16
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_haskell",
version = "0.16",
version = "0.17",
)

bazel_dep(
Expand Down
6 changes: 3 additions & 3 deletions docs/haskell-use-cases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ rules_haskell. To use a released version, do the following::

http_archive(
name = "rules_haskell",
sha256 = "f7a228ef21c7976e42f0949b927f40d3381305d65e19585625eb6ce2c59116e9",
strip_prefix = "rules_haskell-0.16",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.16.tar.gz",
sha256 = "298f6f0db23391274b4eca215daa01797d05699469048ef94540d5829b466377",
strip_prefix = "rules_haskell-0.17",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.17.tar.gz",
)

Picking a compiler
Expand Down
6 changes: 3 additions & 3 deletions examples/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_haskell_examples",
version = "0.16",
version = "0.17",
)

bazel_dep(
Expand All @@ -9,11 +9,11 @@ bazel_dep(
)
bazel_dep(
name = "rules_haskell_nix",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_haskell",
version = "0.16",
version = "0.17",
)

# TODO
Expand Down
2 changes: 1 addition & 1 deletion registry/modules/rules_haskell/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"homepage": "",
"maintainers": [],
"versions": ["0.16"],
"versions": ["0.17"],
"yanked_versions": []
}
2 changes: 1 addition & 1 deletion registry/modules/rules_haskell_nix/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"homepage": "",
"maintainers": [],
"versions": ["0.16"],
"versions": ["0.17"],
"yanked_versions": []
}
4 changes: 2 additions & 2 deletions rules_haskell_nix/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module(
name = "rules_haskell_nix",
version = "0.16",
version = "0.17",
)

bazel_dep(
name = "rules_haskell",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_sh",
Expand Down
6 changes: 3 additions & 3 deletions rules_haskell_tests/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_haskell_tests",
version = "0.16",
version = "0.17",
)

bazel_dep(
Expand All @@ -9,11 +9,11 @@ bazel_dep(
)
bazel_dep(
name = "rules_haskell_nix",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_haskell",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_license",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module(

bazel_dep(
name = "rules_haskell_nix",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_haskell",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_nixpkgs_core",
Expand Down
6 changes: 3 additions & 3 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ load(
# Download rules_haskell and make it accessible as "@rules_haskell".
http_archive(
name = "rules_haskell",
sha256 = "2a07b55c30e526c07138c717b0343a07649e27008a873f2508ffab3074f3d4f3",
strip_prefix = "rules_haskell-0.16",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.16.tar.gz",
sha256 = "298f6f0db23391274b4eca215daa01797d05699469048ef94540d5829b466377",
strip_prefix = "rules_haskell-0.17",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.17.tar.gz",
)

load(
Expand Down
4 changes: 2 additions & 2 deletions tutorial/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ bazel_dep(
# toolchains are considered first
bazel_dep(
name = "rules_haskell_nix",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_haskell",
version = "0.16",
version = "0.17",
)
bazel_dep(
name = "rules_nixpkgs_core",
Expand Down