/
BUILD.bazel
45 lines (41 loc) · 1004 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load("@rules_haskell//haskell:c2hs.bzl", "c2hs_library")
load(
"@rules_haskell//haskell:defs.bzl",
"haskell_library",
)
package(default_testonly = 1)
c2hs_library(
name = "foo",
srcs = ["src/Foo/Foo.chs"],
src_strip_prefix = "src",
tags = [
# See https://github.com/tweag/rules_haskell/issues/1486
"dont_test_on_darwin_with_bindist",
"dont_test_on_windows",
],
deps = ["//tests:zlib"],
)
c2hs_library(
name = "bar",
srcs = ["Bar.chs"],
tags = [
# See https://github.com/tweag/rules_haskell/issues/1486
"dont_test_on_darwin_with_bindist",
"dont_test_on_windows",
],
deps = [":foo"],
)
haskell_library(
name = "c2hs",
srcs = [
":bar",
":foo",
"@c2hs_repo//:baz",
],
tags = [
# See https://github.com/tweag/rules_haskell/issues/1486
"dont_test_on_darwin_with_bindist",
"dont_test_on_windows",
],
deps = ["//tests/hackage:base"],
)