-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completes the prototype implementation of Bazel persistent worker mod…
…e support in rules_haskell Started in 132d0af. This commit imports worker's code and sets everything to make the persistent worker mode available to a regular `rules_haskell` user. The worker code lives in `tools/worker`. The mode is supported in ghc_nixpkgs-toolchain only, at this point.
- Loading branch information
1 parent
21c277b
commit 53d847d
Showing
18 changed files
with
1,023 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Workspace rules (tools/repositories)""" | ||
|
||
load("@rules_haskell//haskell:cabal.bzl", "stack_snapshot") | ||
|
||
def rules_haskell_worker_dependencies(): | ||
"""Provide all repositories that are necessary for `rules_haskell`'s tools to | ||
function. | ||
""" | ||
excludes = native.existing_rules().keys() | ||
|
||
if "rules_haskell_worker_dependencies" not in excludes: | ||
stack_snapshot( | ||
name = "rules_haskell_worker_dependencies", | ||
packages = [ | ||
"base", | ||
"bytestring", | ||
"filepath", | ||
"ghc", | ||
"ghc-paths", | ||
"microlens", | ||
"process", | ||
"proto-lens", | ||
"proto-lens-runtime", | ||
"text", | ||
"vector", | ||
], | ||
snapshot = "lts-14.1", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
load("@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary") | ||
|
||
haskell_cabal_binary( | ||
name = "bin", | ||
srcs = glob(["**"]), | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@rules_haskell_worker_dependencies//:base", | ||
"@rules_haskell_worker_dependencies//:bytestring", | ||
"@rules_haskell_worker_dependencies//:filepath", | ||
"@rules_haskell_worker_dependencies//:ghc", | ||
"@rules_haskell_worker_dependencies//:ghc-paths", | ||
"@rules_haskell_worker_dependencies//:microlens", | ||
"@rules_haskell_worker_dependencies//:process", | ||
"@rules_haskell_worker_dependencies//:proto-lens", | ||
"@rules_haskell_worker_dependencies//:proto-lens-runtime", | ||
"@rules_haskell_worker_dependencies//:text", | ||
"@rules_haskell_worker_dependencies//:vector", | ||
], | ||
) |
Oops, something went wrong.