Andreas Herrmann

Results 103 issues of Andreas Herrmann

# Goal Add a rule `haskell_module` to support fine grained build definitions at the level of individual Haskell modules. # Motivation The existing `haskell_library|binary|test` rules operate on the level of...

**Describe the bug** If a `haskell_cabal_library` target is not loaded "from binary" but instead "from sources" based on the `experimental_from_binary|sources` patterns passed to `haskell_repl`, then it will effectively not be...

P3
type: bug

**Describe the bug** CI fails on [macOS 11.6 (`macos-latest` at the time of writing)](https://github.com/tweag/rules_haskell/runs/3882589783#step:7:271). ``` Setup.hs: Missing dependency on a foreign library: * Missing (or bad) C library: z ```...

P3
type: bug

**Describe the bug** `haskell_cabal_library` fails when `deps` includes a dynamically linked C library. The error is ``` ld: -rpath can only be used when creating a dynamic final linked image...

P3
type: bug
os:macos
dist:bindist

**Describe the bug** Building a target with a C dependency fails in profiling mode **To Reproduce** ``` $ bazel build //tests/library-with-sysincludes -c dbg ... : libexternal_Szlib_Slibzlib.so: cannot open shared object...

P3
type: bug
blocked

**Describe the bug** Building a `haskell_proto_library` target in profiling mode (`-c dbg`) fails. **To Reproduce** ``` $ bazel test //tests/haskell_proto_library:address_haskell_proto -c dbg ... bazel-out/k8-dbg/bin/tests/haskell_proto_library/Proto/Tests/HaskellProtoLibrary/ZipCode.hs:10:1: error: Could not find module ‘Data.ProtoLens.Runtime.Data.ProtoLens.Prism’...

P3
type: bug

**Describe the bug** Building a `haskell_doctest` target in profiling mode (-c dbg) fails. **To Reproduce** ``` $ bazel build //tests/haskell_doctest:doctest-lib-all-success -c dbg ... tests/haskell_doctest/Bar.hs:3:1: error: Could not find module ‘Foo’...

P3
type: bug

Recent versions of ghcide or haskell-language-server require `ghc` in `PATH` to determine the GHC version and libdir at runtime. Bazel manages the GHC installation in rules_haskell, so we should offer...

P3
type: bug

Replaces #1581 Haskell rules support location expansion (e.g. `$(execpath ...)`) in `ghcopts` and similar attributes. The resulting paths may not be valid in the source repository, but only in the...

P3
type: bug

Raised in https://github.com/tweag/rules_haskell/pull/1583#discussion_r693917284 `stack_snapshot` `vendored_packages` are currently tested in [`examples/WORKSPACE`](https://github.com/tweag/rules_haskell/blob/d7a6a09115359d4fc5775f36e7592e5a81e99b39/examples/WORKSPACE#L115) and [`WORKSPACE`](https://github.com/tweag/rules_haskell/blob/d7a6a09115359d4fc5775f36e7592e5a81e99b39/WORKSPACE#L196). However, it would be preferable to have dedicated test-cases that systematically test features such as visibility of non-public...

good first issue
P3