Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Filter for haskell_binary|library|test#12

Open
aherrmann wants to merge 1 commit intogoogle:masterfrom
aherrmann:haskell-filter
Open

Filter for haskell_binary|library|test#12
aherrmann wants to merge 1 commit intogoogle:masterfrom
aherrmann:haskell-filter

Conversation

@aherrmann
Copy link
Copy Markdown

Closes #10

These are the only kinds of targets that produce the compile_info_output_groups that hrepl requires. This is to avoid errors if non-Haskell targets are picked up as intermediate dependencies between targets specified on the command-line, e.g. through data dependencies. See #10.

This also enables users to call hrepl on wild-card targets. E.g. in the rules_haskell repository

hrepl //tests/binary-with-lib:all

Now no longer fails on with an error of the form

hrepl: .../tests/binary-with-lib/binary-with-lib@repl.HaskellCompile.pb: openBinaryFile: does not exist (No such file or directory)

@blackgnezdo
Copy link
Copy Markdown
Contributor

Furthermore, this should help when running on big directories that otherwise leads to

haskell-check: exec: resource exhausted (Argument list too long)

These are the only kinds of targets that produce the
`compile_info_output_groups` that `hrepl` requires. This is to avoid
errors if non-Haskell targets are picked up as intermediate dependencies
between targets specified on the command-line, e.g. through `data`
dependencies.

Additionally, this enables users to call `hrepl` on wild-card targets.
E.g. in the `rules_haskell` repository
```
hrepl //tests/binary-with-lib:all
```
Now no longer fails on with an error of the form
```
hrepl: .../tests/binary-with-lib/binary-with-lib@repl.HaskellCompile.pb: openBinaryFile: does not exist (No such file or directory)
```
@aherrmann
Copy link
Copy Markdown
Author

Rebased on master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.HaskellCompile.pb: openBinaryFile: does not exist

2 participants