|
4 | 4 | "@io_tweag_rules_haskell//haskell:haskell.bzl",
|
5 | 5 | "haskell_binary",
|
6 | 6 | "haskell_doctest_toolchain",
|
| 7 | + "haskell_import", |
7 | 8 | "haskell_library",
|
8 | 9 | "haskell_proto_toolchain",
|
9 | 10 | "haskell_toolchain",
|
@@ -50,17 +51,115 @@ haskell_proto_toolchain(
|
50 | 51 | name = "protobuf-toolchain",
|
51 | 52 | testonly = 0,
|
52 | 53 | plugin = "@protoc_gen_haskell//:bin/proto-lens-protoc",
|
53 |
| - prebuilt_deps = [ |
54 |
| - "base", |
55 |
| - "bytestring", |
56 |
| - "containers", |
57 |
| - "data-default-class", |
58 |
| - "lens-family", |
59 |
| - "lens-labels", |
60 |
| - "proto-lens", |
61 |
| - "text", |
62 |
| - ], |
63 | 54 | protoc = "@com_google_protobuf//:protoc",
|
| 55 | + deps = [ |
| 56 | + "//tests:base", |
| 57 | + "//tests:bytestring", |
| 58 | + "//tests:containers", |
| 59 | + "//tests:data-default-class", |
| 60 | + "//tests:lens-family", |
| 61 | + "//tests:lens-labels", |
| 62 | + "//tests:proto-lens", |
| 63 | + "//tests:text", |
| 64 | + ], |
| 65 | +) |
| 66 | + |
| 67 | +haskell_import( |
| 68 | + name = "base", |
| 69 | + testonly = 0, |
| 70 | + package = "base", |
| 71 | + visibility = ["//visibility:public"], |
| 72 | +) |
| 73 | + |
| 74 | +haskell_import( |
| 75 | + name = "bytestring", |
| 76 | + testonly = 0, |
| 77 | + package = "bytestring", |
| 78 | + visibility = ["//visibility:public"], |
| 79 | +) |
| 80 | + |
| 81 | +haskell_import( |
| 82 | + name = "containers", |
| 83 | + testonly = 0, |
| 84 | + package = "containers", |
| 85 | + visibility = ["//visibility:public"], |
| 86 | +) |
| 87 | + |
| 88 | +haskell_import( |
| 89 | + name = "directory", |
| 90 | + testonly = 0, |
| 91 | + package = "directory", |
| 92 | + visibility = ["//visibility:public"], |
| 93 | +) |
| 94 | + |
| 95 | +haskell_import( |
| 96 | + name = "data-default-class", |
| 97 | + testonly = 0, |
| 98 | + package = "data-default-class", |
| 99 | + visibility = ["//visibility:public"], |
| 100 | +) |
| 101 | + |
| 102 | +haskell_import( |
| 103 | + name = "filepath", |
| 104 | + testonly = 0, |
| 105 | + package = "filepath", |
| 106 | + visibility = ["//visibility:public"], |
| 107 | +) |
| 108 | + |
| 109 | +haskell_import( |
| 110 | + name = "ghc-prim", |
| 111 | + testonly = 0, |
| 112 | + package = "ghc-prim", |
| 113 | + visibility = ["//visibility:public"], |
| 114 | +) |
| 115 | + |
| 116 | +haskell_import( |
| 117 | + name = "process", |
| 118 | + testonly = 0, |
| 119 | + package = "process", |
| 120 | + visibility = ["//visibility:public"], |
| 121 | +) |
| 122 | + |
| 123 | +haskell_import( |
| 124 | + name = "template-haskell", |
| 125 | + testonly = 0, |
| 126 | + package = "template-haskell", |
| 127 | + visibility = ["//visibility:public"], |
| 128 | +) |
| 129 | + |
| 130 | +haskell_import( |
| 131 | + name = "lens-family", |
| 132 | + testonly = 0, |
| 133 | + package = "lens-family", |
| 134 | + visibility = ["//visibility:public"], |
| 135 | +) |
| 136 | + |
| 137 | +haskell_import( |
| 138 | + name = "lens-labels", |
| 139 | + testonly = 0, |
| 140 | + package = "lens-labels", |
| 141 | + visibility = ["//visibility:public"], |
| 142 | +) |
| 143 | + |
| 144 | +haskell_import( |
| 145 | + name = "array", |
| 146 | + testonly = 0, |
| 147 | + package = "array", |
| 148 | + visibility = ["//visibility:public"], |
| 149 | +) |
| 150 | + |
| 151 | +haskell_import( |
| 152 | + name = "text", |
| 153 | + testonly = 0, |
| 154 | + package = "text", |
| 155 | + visibility = ["//visibility:public"], |
| 156 | +) |
| 157 | + |
| 158 | +haskell_import( |
| 159 | + name = "proto-lens", |
| 160 | + testonly = 0, |
| 161 | + package = "proto-lens", |
| 162 | + visibility = ["//visibility:public"], |
64 | 163 | )
|
65 | 164 |
|
66 | 165 | rule_test(
|
|
0 commit comments