about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/hs-boot
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/hs-boot')
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/A.hs-boot.in2
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/A.hs.in8
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/BUILD.bazel48
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/MA.hs8
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/MA.hs-boot2
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/MB.hs8
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/Main.hs9
-rw-r--r--third_party/bazel/rules_haskell/tests/hs-boot/srcs/B.hs8
8 files changed, 0 insertions, 93 deletions
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/A.hs-boot.in b/third_party/bazel/rules_haskell/tests/hs-boot/A.hs-boot.in
deleted file mode 100644
index 02d37ced95..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/A.hs-boot.in
+++ /dev/null
@@ -1,2 +0,0 @@
-module A where
-  newtype TA = MkTA Int
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/A.hs.in b/third_party/bazel/rules_haskell/tests/hs-boot/A.hs.in
deleted file mode 100644
index deeff5470b..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/A.hs.in
+++ /dev/null
@@ -1,8 +0,0 @@
-module A where
-
-import B (TB (..))
-
-newtype TA = MkTA Int
-
-f :: TB -> TA
-f (MkTB x) = MkTA x
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/BUILD.bazel b/third_party/bazel/rules_haskell/tests/hs-boot/BUILD.bazel
deleted file mode 100644
index 4e69da0e6b..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/BUILD.bazel
+++ /dev/null
@@ -1,48 +0,0 @@
-load(
-    "@io_tweag_rules_haskell//haskell:haskell.bzl",
-    "haskell_library",
-    "haskell_test",
-)
-
-package(default_testonly = 1)
-
-genrule(
-    name = "gen-A-boot",
-    srcs = ["A.hs-boot.in"],
-    outs = ["srcs/A.hs-boot"],
-    cmd = "cp $< $@",
-)
-
-genrule(
-    name = "gen-A",
-    srcs = ["A.hs.in"],
-    outs = ["srcs/A.hs"],
-    cmd = "cp $< $@",
-)
-
-haskell_library(
-    name = "hs-boot-lib",
-    srcs = [
-        "srcs/B.hs",
-        ":gen-A",
-        ":gen-A-boot",
-    ],
-    src_strip_prefix = "srcs",
-    visibility = ["//visibility:public"],
-    deps = ["//tests/hackage:base"],
-)
-
-haskell_test(
-    name = "hs-boot",
-    srcs = [
-        "MA.hs",
-        "MA.hs-boot",
-        "MB.hs",
-        "Main.hs",
-    ],
-    visibility = ["//visibility:public"],
-    deps = [
-        ":hs-boot-lib",
-        "//tests/hackage:base",
-    ],
-)
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/MA.hs b/third_party/bazel/rules_haskell/tests/hs-boot/MA.hs
deleted file mode 100644
index 4e01285962..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/MA.hs
+++ /dev/null
@@ -1,8 +0,0 @@
-module MA where
-
-import MB (TB (..))
-
-newtype TA = MkTA Int
-
-f :: TB -> TA
-f (MkTB x) = MkTA x
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/MA.hs-boot b/third_party/bazel/rules_haskell/tests/hs-boot/MA.hs-boot
deleted file mode 100644
index 0ab8c899f2..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/MA.hs-boot
+++ /dev/null
@@ -1,2 +0,0 @@
-module MA where
-  newtype TA = MkTA Int
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/MB.hs b/third_party/bazel/rules_haskell/tests/hs-boot/MB.hs
deleted file mode 100644
index d90d041d57..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/MB.hs
+++ /dev/null
@@ -1,8 +0,0 @@
-module MB where
-
-import {-# SOURCE #-} MA (TA (..))
-
-data TB = MkTB !Int
-
-g :: TA -> TB
-g (MkTA x) = MkTB x
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/Main.hs b/third_party/bazel/rules_haskell/tests/hs-boot/Main.hs
deleted file mode 100644
index 15c0085fe0..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/Main.hs
+++ /dev/null
@@ -1,9 +0,0 @@
-module Main (main) where
-
-import A ()
-import B ()
-import MA ()
-import MB ()
-
-main :: IO ()
-main = putStrLn "hsboot"
diff --git a/third_party/bazel/rules_haskell/tests/hs-boot/srcs/B.hs b/third_party/bazel/rules_haskell/tests/hs-boot/srcs/B.hs
deleted file mode 100644
index 60e1ff5f3e..0000000000
--- a/third_party/bazel/rules_haskell/tests/hs-boot/srcs/B.hs
+++ /dev/null
@@ -1,8 +0,0 @@
-module B where
-
-import {-# SOURCE #-} A (TA (..))
-
-data TB = MkTB !Int
-
-g :: TA -> TB
-g (MkTA x) = MkTB x