summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/hidden-modules/BUILD.bazel
blob: 5d79e56085a23a64ba92624562e46094ddf8b741 (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
26
27
28
29
30
31
32
33
34
35
load(
    "@io_tweag_rules_haskell//haskell:haskell.bzl",
    "haskell_library",
)

package(
    default_testonly = 1,
    default_visibility = ["//visibility:public"],
)

haskell_library(
    name = "lib-a",
    srcs = glob(["lib-a/*.hs"]),
    hidden_modules = ["Foo"],
    src_strip_prefix = "lib-a",
    deps = ["//tests/hackage:base"],
)

haskell_library(
    name = "lib-b",
    srcs = glob(["lib-b/*.hs"]),
    src_strip_prefix = "lib-b",
    deps = ["//tests/hackage:base"],
)

haskell_library(
    name = "lib-c",
    srcs = glob(["lib-c/*.hs"]),
    src_strip_prefix = "lib-c",
    deps = [
        ":lib-a",
        ":lib-b",
        "//tests/hackage:base",
    ],
)