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
|
load(
"@io_tweag_rules_haskell//haskell:haskell.bzl",
"haskell_library",
"haskell_test",
)
package(default_testonly = 1)
haskell_library(
name = "mylib",
srcs = ["Lib.hs"],
deps = ["//tests/hackage:base"],
)
haskell_test(
name = "haskell_test",
# Use some parameters that only test rules have.
size = "small",
timeout = "short",
srcs = ["Test.hs"],
flaky = False,
main_function = "Test.test",
visibility = ["//visibility:public"],
deps = [
":mylib",
"//tests/data:ourclibrary",
"//tests/hackage:base",
],
)
|