Skip to content

Commit

Permalink
Use new hspec_test rule to work around rules_haskell issue 625.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Mar 23, 2019
1 parent 0712049 commit 3b8741a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 3b8741a

Please sign in to comment.