rules_haskell
rules_haskell copied to clipboard
Haskell rules for Bazel.
WIP: not ready for review yet. The problem: ``` rules_haskell fix-haskell-module-th-linking % bazel build "//tests/haskell_module/th:lib" INFO: Analyzed target //tests/haskell_module/th:lib (29 packages loaded, 353 targets configured). INFO: Found 1 target... ERROR:...
This fixes the issue with sed(used in ghc_wrapper.sh) being gotten from the environment instead of the posix toolchain. Fixes #1800
On NixOS (I assume this is the cause), running ``` > bazel test //tests/haskell_module/repl:haskell_module_repl_cross_library_deps_test_nixpkgs_bazel_4 ``` fails, complaining about a missing sed. I assume this is (directly) related to this discussion...
**Describe the bug** When trying to install `amazonka` from `git` using `stack_snapshot` I am running into an issue: ``` ERROR: /home/user/.cache/bazel/_bazel_user/869a83396675f139abf70dd5c93f27e7/external/stackage/BUILD.bazel:244:22: in haskell_cabal_library rule @stackage//:amazonka: Traceback (most recent call last):...
When a `stack_snapshot_json` is being used, if I change a version of a package in `packages`, that change is ignored and instead the pinned info is used directly. Should we...
fixes #1687 I tested this by just manually tweaking test files and monitoring for errors, because I was unsure of how to write a test expecting a failure. If one...
rules_haskell contains a home-grown set library in [`haskell/private/set.bzl`](https://github.com/tweag/rules_haskell/blob/d8afc5739639f01e734b833426d70d10155be9bd/haskell/private/set.bzl). However, it's implementation is very similar to the [one provided by Skylib](https://github.com/bazelbuild/bazel-skylib/blob/main/lib/sets.bzl). We should switch to the Skylib provided one and remove...
The documentation of the `hidden_modules` attribute of the `haskell_library` rules currently says: ``` Modules that should be unavailable for import by dependencies. ``` The text itself is wrong, since dependencies...
This adds a test for #1771 as suggested by #1783
**Is your feature request related to a problem? Please describe.** I moved my `nixpkgs_git_repository` revision to latest nixpkgs head, and my `nixpkgs_package` kept giving the same output. Flushing the cache...