From 3b8741a3231427b74dbc7676dd2c56a01d4a678f Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 23 Mar 2019 10:25:28 +0000 Subject: [PATCH] Use new hspec_test rule to work around rules_haskell issue 625. --- BUILD.bazel | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index e291b64..c71d6d9 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,6 @@ load("@ai_formation_hazel//:hazel.bzl", "hazel_library") -load("@io_tweag_rules_haskell//haskell:haskell.bzl", "haskell_library", "haskell_test") +load("@io_tweag_rules_haskell//haskell:haskell.bzl", "haskell_library") +load("//third_party/haskell/hspec-discover:build_defs.bzl", "hspec_test") load("//third_party/haskell/alex:build_defs.bzl", "alex_lexer") load("//third_party/haskell/happy:build_defs.bzl", "happy_parser") load("//tools/project:build_defs.bzl", "project") @@ -40,15 +41,12 @@ haskell_library( ], ) -haskell_test( +hspec_test( name = "test", - srcs = glob(["test/**/*.*hs"]), compiler_flags = [ "-Wall", "-Werror", ], - src_strip_prefix = "test", - visibility = ["//visibility:public"], deps = [ ":hs-tokstyle", hazel_library("base"),