Skip to content
Open
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
5 changes: 5 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ jobs:
run: |
# Quote the package specifier so that it works on Windows
bazelisk test "//..."
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true

all_ci_tests:
runs-on: ubuntu-24.04
Expand Down
18 changes: 18 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ rules_shell_dependencies()

rules_shell_toolchains()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
Expand Down
10 changes: 5 additions & 5 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ libraries = {
"@com_google_protobuf//bazel:cc_proto_library_bzl",
"@com_google_protobuf//bazel/common:proto_info_bzl",
"@rules_cc//cc/common",
"@rules_cc//cc/toolchains:srcs",
"@rules_cc//cc/toolchains:toolchain_rules",
"@rules_java//java:rules",
"@rules_shell//shell:rules_bzl",
"//haskell",
Expand All @@ -39,15 +39,15 @@ libraries = {
"@com_google_protobuf//bazel:cc_proto_library_bzl",
"@com_google_protobuf//bazel/common:proto_info_bzl",
"@rules_cc//cc/common",
"@rules_cc//cc/toolchains:srcs",
"@rules_cc//cc/toolchains:toolchain_rules",
"@rules_java//java:rules",
"//haskell",
],
"cabal": [
"@com_google_protobuf//bazel:cc_proto_library_bzl",
"@com_google_protobuf//bazel/common:proto_info_bzl",
"@rules_cc//cc/common",
"@rules_cc//cc/toolchains:srcs",
"@rules_cc//cc/toolchains:toolchain_rules",
"@rules_proto//proto:defs",
"//haskell",
],
Expand All @@ -61,15 +61,15 @@ libraries = {
"@com_google_protobuf//bazel:cc_proto_library_bzl",
"@com_google_protobuf//bazel/common:proto_info_bzl",
"@rules_cc//cc/common",
"@rules_cc//cc/toolchains:srcs",
"@rules_cc//cc/toolchains:toolchain_rules",
"@rules_java//java:rules",
"@rules_proto//proto:defs",
"//haskell",
],
"c2hs": [
"@com_google_protobuf//bazel:cc_proto_library_bzl",
"@rules_cc//cc/common",
"@rules_cc//cc/toolchains:srcs",
"@rules_cc//cc/toolchains:toolchain_rules",
"//haskell",
],
}
Expand Down
2 changes: 1 addition & 1 deletion examples/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bazel_dep(

bazel_dep(
name = "rules_cc",
version = "0.1.1",
version = "0.2.0",
)
bazel_dep(
name = "rules_sh",
Expand Down
18 changes: 18 additions & 0 deletions examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")

rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

GHC_VERSION = "9.4.8"
Expand Down
10 changes: 10 additions & 0 deletions examples/arm/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ load(

rules_haskell_dependencies()

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load(
"@rules_haskell//haskell:cabal.bzl",
"stack_snapshot",
Expand Down
3 changes: 3 additions & 0 deletions haskell/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def rules_haskell_dependencies():
urls = [
"https://github.com/bazelbuild/rules_java/releases/download/6.3.0/rules_java-6.3.0.tar.gz",
],
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.2.0/rules_cc-0.2.0.tar.gz"],
sha256 = "ae244f400218f4a12ee81658ff246c0be5cb02c5ca2de5519ed505a6795431e9",
strip_prefix = "rules_cc-0.2.0",
)

maybe(
Expand Down
2 changes: 1 addition & 1 deletion rules_haskell_tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bazel_dep(
)
bazel_dep(
name = "rules_cc",
version = "0.1.1",
version = "0.2.0",
)
bazel_dep(
name = "rules_sh",
Expand Down
18 changes: 18 additions & 0 deletions rules_haskell_tests/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")

rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("//:non_module_deps.bzl", "repositories")

repositories(bzlmod = False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ nixpkgs_cc_configure(
name = "nixpkgs_config_cc",
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
18 changes: 18 additions & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,24 @@ load(
# Setup all Bazel dependencies required by rules_haskell.
rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load(
"@rules_haskell//haskell:toolchain.bzl",
"rules_haskell_toolchains",
Expand Down
18 changes: 18 additions & 0 deletions tutorial/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")

rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

GHC_VERSION = "9.4.8"
Expand Down
Loading