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 --- .../rules_haskell/tests/package-name/BUILD.bazel | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 third_party/bazel/rules_haskell/tests/package-name/BUILD.bazel (limited to 'third_party/bazel/rules_haskell/tests/package-name/BUILD.bazel') diff --git a/third_party/bazel/rules_haskell/tests/package-name/BUILD.bazel b/third_party/bazel/rules_haskell/tests/package-name/BUILD.bazel new file mode 100644 index 000000000000..9d187f083636 --- /dev/null +++ b/third_party/bazel/rules_haskell/tests/package-name/BUILD.bazel @@ -0,0 +1,28 @@ +load( + "@io_tweag_rules_haskell//haskell:haskell.bzl", + "haskell_library", + "haskell_test", +) + +# Tests around our use of package names. +package(default_testonly = 1) + +haskell_library( + # The character "Z" should be untouched in the GHC package name. + # However, underscores (which are not legal) should be turned into dashes. + name = "lib-a_Z", + srcs = ["Lib.hs"], + version = "1.2.3.4", + deps = ["//tests/hackage:base"], +) + +haskell_test( + name = "bin", + size = "small", + srcs = ["Main.hs"], + version = "0.0.0", # This flags triggers the `MIN_VERSION` macro generation + deps = [ + ":lib-a_Z", + "//tests/hackage:base", + ], +) -- cgit 1.4.1