about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/extra-source-files
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/extra-source-files')
-rw-r--r--third_party/bazel/rules_haskell/tests/extra-source-files/BUILD.bazel44
-rw-r--r--third_party/bazel/rules_haskell/tests/extra-source-files/Foo.hs8
-rw-r--r--third_party/bazel/rules_haskell/tests/extra-source-files/FooTH.hs12
-rw-r--r--third_party/bazel/rules_haskell/tests/extra-source-files/Main.hs4
-rw-r--r--third_party/bazel/rules_haskell/tests/extra-source-files/file.txt1
-rw-r--r--third_party/bazel/rules_haskell/tests/extra-source-files/ld-options.txt0
6 files changed, 0 insertions, 69 deletions
diff --git a/third_party/bazel/rules_haskell/tests/extra-source-files/BUILD.bazel b/third_party/bazel/rules_haskell/tests/extra-source-files/BUILD.bazel
deleted file mode 100644
index 9552d7c9e974..000000000000
--- a/third_party/bazel/rules_haskell/tests/extra-source-files/BUILD.bazel
+++ /dev/null
@@ -1,44 +0,0 @@
-load(
-    "@io_tweag_rules_haskell//haskell:haskell.bzl",
-    "haskell_library",
-    "haskell_test",
-)
-
-package(default_testonly = 1)
-
-haskell_library(
-    name = "extra-source-files",
-    srcs = [
-        "Foo.hs",
-        "FooTH.hs",
-    ],
-    # Test that the linker can also see the extra_srcs.
-    compiler_flags = ["-optl-Wl,@tests/extra-source-files/ld-options.txt"],
-    extra_srcs = [
-        "file.txt",
-        "ld-options.txt",
-    ],
-    deps = [
-        "//tests/hackage:base",
-        "//tests/hackage:template-haskell",
-    ],
-)
-
-haskell_test(
-    name = "extra-source-files-bin",
-    srcs = [
-        "Foo.hs",
-        "FooTH.hs",
-        "Main.hs",
-    ],
-    # Test that the linker can also see the extra_srcs.
-    compiler_flags = ["-optl-Wl,@tests/extra-source-files/ld-options.txt"],
-    extra_srcs = [
-        "file.txt",
-        "ld-options.txt",
-    ],
-    deps = [
-        "//tests/hackage:base",
-        "//tests/hackage:template-haskell",
-    ],
-)
diff --git a/third_party/bazel/rules_haskell/tests/extra-source-files/Foo.hs b/third_party/bazel/rules_haskell/tests/extra-source-files/Foo.hs
deleted file mode 100644
index b3f0c04492db..000000000000
--- a/third_party/bazel/rules_haskell/tests/extra-source-files/Foo.hs
+++ /dev/null
@@ -1,8 +0,0 @@
-{-# LANGUAGE TemplateHaskell #-}
-
-module Foo (foo) where
-
-import FooTH (embedFile)
-
-foo :: String
-foo = $(embedFile "tests/extra-source-files/file.txt") ++ "!"
diff --git a/third_party/bazel/rules_haskell/tests/extra-source-files/FooTH.hs b/third_party/bazel/rules_haskell/tests/extra-source-files/FooTH.hs
deleted file mode 100644
index 24d663108355..000000000000
--- a/third_party/bazel/rules_haskell/tests/extra-source-files/FooTH.hs
+++ /dev/null
@@ -1,12 +0,0 @@
-{-# LANGUAGE TemplateHaskell #-}
-
-module FooTH (embedFile) where
-
-import Language.Haskell.TH
-import Language.Haskell.TH.Syntax
-
-embedFile :: FilePath -> Q Exp
-embedFile path = do
-  str <- runIO (readFile path)
-  addDependentFile path
-  [| str |]
diff --git a/third_party/bazel/rules_haskell/tests/extra-source-files/Main.hs b/third_party/bazel/rules_haskell/tests/extra-source-files/Main.hs
deleted file mode 100644
index 13e4bd765b6a..000000000000
--- a/third_party/bazel/rules_haskell/tests/extra-source-files/Main.hs
+++ /dev/null
@@ -1,4 +0,0 @@
-import Foo (foo)
-
-main :: IO ()
-main = putStrLn foo
diff --git a/third_party/bazel/rules_haskell/tests/extra-source-files/file.txt b/third_party/bazel/rules_haskell/tests/extra-source-files/file.txt
deleted file mode 100644
index 5bc133a4d007..000000000000
--- a/third_party/bazel/rules_haskell/tests/extra-source-files/file.txt
+++ /dev/null
@@ -1 +0,0 @@
-And here we go
diff --git a/third_party/bazel/rules_haskell/tests/extra-source-files/ld-options.txt b/third_party/bazel/rules_haskell/tests/extra-source-files/ld-options.txt
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/third_party/bazel/rules_haskell/tests/extra-source-files/ld-options.txt
+++ /dev/null