summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/repl-targets
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/repl-targets')
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/BUILD.bazel81
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/Bad.hs6
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/Chs.chs6
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/Foo.hs9
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/Hsc.hsc8
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/Quux.hs6
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/QuuxLib.hs4
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/src/Bar.hs4
-rw-r--r--third_party/bazel/rules_haskell/tests/repl-targets/src/Baz.hsc4
9 files changed, 0 insertions, 128 deletions
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/BUILD.bazel b/third_party/bazel/rules_haskell/tests/repl-targets/BUILD.bazel
deleted file mode 100644
index 2fd78bfd66..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/BUILD.bazel
+++ /dev/null
@@ -1,81 +0,0 @@
-load("@io_tweag_rules_haskell//haskell:c2hs.bzl", "c2hs_library")
-load(
-    "@io_tweag_rules_haskell//haskell:haskell.bzl",
-    "haskell_library",
-    "haskell_test",
-)
-
-package(default_testonly = 1)
-
-genrule(
-    name = "codegen",
-    outs = [
-        "Gen.hs",
-    ],
-    cmd = """
-  echo "module Gen (gen) where" >> $(location :Gen.hs)
-  echo "gen :: String" >> $(location :Gen.hs)
-  echo "gen = \\"gen\\"" >> $(location :Gen.hs)
-""",
-)
-
-c2hs_library(
-    name = "chs",
-    srcs = ["Chs.chs"],
-    tags = ["requires_c2hs"],
-)
-
-haskell_library(
-    name = "hs-lib",
-    srcs = [
-        "Foo.hs",
-        "Hsc.hsc",
-        ":chs",
-        ":codegen",
-    ],
-    tags = [
-        "requires_hackage",
-        "requires_zlib",
-    ],
-    visibility = ["//visibility:public"],
-    deps = [
-        "//tests/data:ourclibrary",
-        "//tests/hackage:array",
-        "//tests/hackage:base",
-        "@zlib",
-    ],
-)
-
-haskell_library(
-    name = "hs-lib-bad",
-    srcs = [
-        "Bad.hs",
-    ],
-    tags = [
-        "manual",
-        "requires_zlib",
-    ],
-    visibility = ["//visibility:public"],
-    deps = [
-        "//tests/data:ourclibrary",
-        "//tests/hackage:base",
-        "@hackage//:array",
-        "@zlib",
-    ],
-)
-
-haskell_library(
-    name = "QuuxLib",
-    srcs = ["QuuxLib.hs"],
-    deps = ["//tests/hackage:base"],
-)
-
-haskell_test(
-    name = "hs-bin",
-    srcs = ["Quux.hs"],
-    visibility = ["//visibility:public"],
-    deps = [
-        ":QuuxLib",
-        "//tests/hackage:base",
-    ],
-)
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/Bad.hs b/third_party/bazel/rules_haskell/tests/repl-targets/Bad.hs
deleted file mode 100644
index 2889be2ba7..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/Bad.hs
+++ /dev/null
@@ -1,6 +0,0 @@
-module Bad
-  ( bad )
-where
-
-bad :: Into
-bad = "foo"
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/Chs.chs b/third_party/bazel/rules_haskell/tests/repl-targets/Chs.chs
deleted file mode 100644
index c66bae7d60..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/Chs.chs
+++ /dev/null
@@ -1,6 +0,0 @@
-module Chs
-  ( baz )
-where
-
-baz :: String
-baz = "baz"
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/Foo.hs b/third_party/bazel/rules_haskell/tests/repl-targets/Foo.hs
deleted file mode 100644
index 5e5138418d..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/Foo.hs
+++ /dev/null
@@ -1,9 +0,0 @@
-{-# LANGUAGE ForeignFunctionInterface #-}
-
-module Foo (foo) where
-
-foreign import ccall "c_add_one"
-  c_add_one :: Int -> Int
-
-foo :: Int -> Int
-foo = (+ 5) . c_add_one
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/Hsc.hsc b/third_party/bazel/rules_haskell/tests/repl-targets/Hsc.hsc
deleted file mode 100644
index d4e3d6605c..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/Hsc.hsc
+++ /dev/null
@@ -1,8 +0,0 @@
-module Hsc
-  ( bar )
-where
-
-#ifndef _INTERNAL_HSC_DO_NOT_DEFINE_ME
-bar :: String
-bar = "bar"
-#endif
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/Quux.hs b/third_party/bazel/rules_haskell/tests/repl-targets/Quux.hs
deleted file mode 100644
index 2e67d221fb..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/Quux.hs
+++ /dev/null
@@ -1,6 +0,0 @@
-module Main (main) where
-
-import QuuxLib (message)
-
-main :: IO ()
-main = putStrLn message
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/QuuxLib.hs b/third_party/bazel/rules_haskell/tests/repl-targets/QuuxLib.hs
deleted file mode 100644
index d321de2add..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/QuuxLib.hs
+++ /dev/null
@@ -1,4 +0,0 @@
-module QuuxLib (message) where
-
-message :: String
-message = "Hello GHCi!"
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/src/Bar.hs b/third_party/bazel/rules_haskell/tests/repl-targets/src/Bar.hs
deleted file mode 100644
index 18fe359e0a..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/src/Bar.hs
+++ /dev/null
@@ -1,4 +0,0 @@
-module Bar (bar) where
-
-bar :: Int
-bar = 4
diff --git a/third_party/bazel/rules_haskell/tests/repl-targets/src/Baz.hsc b/third_party/bazel/rules_haskell/tests/repl-targets/src/Baz.hsc
deleted file mode 100644
index 984ec4ff0a..0000000000
--- a/third_party/bazel/rules_haskell/tests/repl-targets/src/Baz.hsc
+++ /dev/null
@@ -1,4 +0,0 @@
-module Baz (baz) where
-
-baz :: Int
-baz = 8