about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/failures/transitive-deps
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/failures/transitive-deps')
-rw-r--r--third_party/bazel/rules_haskell/tests/failures/transitive-deps/BUILD.bazel66
-rw-r--r--third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibA.hs4
-rw-r--r--third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibB.hs6
-rw-r--r--third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibC.hs6
-rw-r--r--third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibD.hs7
5 files changed, 0 insertions, 89 deletions
diff --git a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/BUILD.bazel b/third_party/bazel/rules_haskell/tests/failures/transitive-deps/BUILD.bazel
deleted file mode 100644
index c2efbd924a32..000000000000
--- a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/BUILD.bazel
+++ /dev/null
@@ -1,66 +0,0 @@
-load(
-    "@io_tweag_rules_haskell//haskell:haskell.bzl",
-    "haskell_library",
-)
-
-package(default_testonly = 1)
-
-haskell_library(
-    name = "lib-a",
-    srcs = ["LibA.hs"],
-    deps = ["//tests/hackage:base"],
-)
-
-haskell_library(
-    name = "lib-b",
-    srcs = ["LibB.hs"],
-    visibility = ["//visibility:private"],
-    deps = [
-        ":lib-a",
-        "//tests/hackage:base",
-    ],
-)
-
-# Targets that must FAIL. These are tagged as manual so that
-#
-# $ bazel build //...
-#
-# does not fail.
-
-haskell_library(
-    # Should fail because it doesn't specify "base" explicitly.
-    name = "lib-cFailure",
-    srcs = ["LibC.hs"],
-    tags = ["manual"],
-    deps = [":lib-b"],
-)
-
-haskell_library(
-    name = "lib-c",
-    srcs = ["LibC.hs"],
-    deps = [
-        ":lib-b",
-        "//tests/hackage:base",
-    ],
-)
-
-haskell_library(
-    # Should fail because it doesn't specify "lib-a" explicitly.
-    name = "lib-dFailure",
-    srcs = ["LibD.hs"],
-    tags = ["manual"],
-    deps = [
-        ":lib-b",
-        "//tests/hackage:base",
-    ],
-)
-
-haskell_library(
-    name = "lib-d",
-    srcs = ["LibD.hs"],
-    deps = [
-        ":lib-a",
-        ":lib-b",
-        "//tests/hackage:base",
-    ],
-)
diff --git a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibA.hs b/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibA.hs
deleted file mode 100644
index 23e9486489fe..000000000000
--- a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibA.hs
+++ /dev/null
@@ -1,4 +0,0 @@
-module LibA (thingA) where
-
-thingA :: Int
-thingA = 5
diff --git a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibB.hs b/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibB.hs
deleted file mode 100644
index 9ab883093bd8..000000000000
--- a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibB.hs
+++ /dev/null
@@ -1,6 +0,0 @@
-module LibB (thingB) where
-
-import LibA (thingA)
-
-thingB :: Int
-thingB = thingA + 1
diff --git a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibC.hs b/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibC.hs
deleted file mode 100644
index 70514f13168b..000000000000
--- a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibC.hs
+++ /dev/null
@@ -1,6 +0,0 @@
-module LibC (thingC) where
-
-import LibB (thingB)
-
-thingC :: Int
-thingC = thingB * 2
diff --git a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibD.hs b/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibD.hs
deleted file mode 100644
index 326d224a2a15..000000000000
--- a/third_party/bazel/rules_haskell/tests/failures/transitive-deps/LibD.hs
+++ /dev/null
@@ -1,7 +0,0 @@
-module LibD (thingD) where
-
-import LibA (thingA)
-import LibB (thingB)
-
-thingD :: Int
-thingD = thingA + thingB