about summary refs log blame commit diff
path: root/third_party/bazel/rules_haskell/tests/haskell_test/BUILD.bazel
blob: eb00b2c3188129dab8aa463ee8a6f31df32bdb06 (plain) (tree)




























                                                    
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",
    ],
)