From f723b8b878a3c4a4687b9e337a875500bebb39b1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 4 Jul 2019 11:18:12 +0100 Subject: feat(third_party/bazel): Check in rules_haskell from Tweag --- .../bazel/rules_haskell/tools/runfiles/BUILD.bazel | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 third_party/bazel/rules_haskell/tools/runfiles/BUILD.bazel (limited to 'third_party/bazel/rules_haskell/tools/runfiles/BUILD.bazel') diff --git a/third_party/bazel/rules_haskell/tools/runfiles/BUILD.bazel b/third_party/bazel/rules_haskell/tools/runfiles/BUILD.bazel new file mode 100644 index 000000000000..bc99b96c037a --- /dev/null +++ b/third_party/bazel/rules_haskell/tools/runfiles/BUILD.bazel @@ -0,0 +1,46 @@ +load( + "@io_tweag_rules_haskell//haskell:haskell.bzl", + "haskell_library", + "haskell_test", +) + +haskell_library( + name = "runfiles", + srcs = ["src/Bazel/Runfiles.hs"], + src_strip_prefix = "src", + visibility = ["//visibility:public"], + deps = [ + "@hackage//:base", + "@hackage//:directory", + "@hackage//:filepath", + ], +) + +haskell_test( + name = "bin", + testonly = 1, + srcs = ["bin/Bin.hs"], + data = ["bin-data.txt"], + src_strip_prefix = "bin", + deps = [ + ":runfiles", + "@hackage//:base", + "@hackage//:filepath", + ], +) + +haskell_test( + name = "test", + srcs = ["test/Test.hs"], + data = [ + "test-data.txt", + ":bin", + ], + src_strip_prefix = "test", + deps = [ + ":runfiles", + "@hackage//:base", + "@hackage//:filepath", + "@hackage//:process", + ], +) -- cgit 1.4.1