about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/binary-with-lib-dynamic/BUILD.bazel
blob: 6be2db88b732a230063a5734c02864e5fb92f9b6 (plain) (blame)
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
load(
    "@io_tweag_rules_haskell//haskell:haskell.bzl",
    "haskell_library",
    "haskell_test",
)

package(default_testonly = 1)

haskell_library(
    name = "lib",
    srcs = glob(["src/*.hs"]),
    linkstatic = False,
    src_strip_prefix = "src",
)

haskell_test(
    name = "binary-with-lib-dynamic",
    srcs = ["Main.hs"],
    linkstatic = False,
    visibility = ["//visibility:public"],
    deps = [
        ":lib",
        "//tests/hackage:base",
    ],
)