29 lines
598 B
Text
29 lines
598 B
Text
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",
|
|
],
|
|
)
|