feat(third_party/bazel): Check in rules_haskell from Tweag
This commit is contained in:
parent
2eb1dc26e4
commit
f723b8b878
479 changed files with 51484 additions and 0 deletions
16
third_party/bazel/rules_haskell/tests/multi_repl/BUILD.bazel
vendored
Normal file
16
third_party/bazel/rules_haskell/tests/multi_repl/BUILD.bazel
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
load(
|
||||
"@io_tweag_rules_haskell//haskell:haskell.bzl",
|
||||
"haskell_repl",
|
||||
)
|
||||
|
||||
haskell_repl(
|
||||
name = "c_only_repl",
|
||||
# To only load :c by source.
|
||||
experimental_from_source = ["//tests/multi_repl/bc:c"],
|
||||
deps = ["//tests/multi_repl/bc:c"],
|
||||
)
|
||||
|
||||
haskell_repl(
|
||||
name = "c_multi_repl",
|
||||
deps = ["//tests/multi_repl/bc:c"],
|
||||
)
|
||||
17
third_party/bazel/rules_haskell/tests/multi_repl/a/BUILD.bazel
vendored
Normal file
17
third_party/bazel/rules_haskell/tests/multi_repl/a/BUILD.bazel
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(
|
||||
"@io_tweag_rules_haskell//haskell:haskell.bzl",
|
||||
"haskell_library",
|
||||
)
|
||||
|
||||
haskell_library(
|
||||
name = "a",
|
||||
srcs = [
|
||||
"src/A/A.hs",
|
||||
],
|
||||
src_strip_prefix = "src",
|
||||
deps = [
|
||||
"//tests/hackage:base",
|
||||
],
|
||||
)
|
||||
4
third_party/bazel/rules_haskell/tests/multi_repl/a/src/A/A.hs
vendored
Normal file
4
third_party/bazel/rules_haskell/tests/multi_repl/a/src/A/A.hs
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
module A.A ( a ) where
|
||||
|
||||
a :: ()
|
||||
a = ()
|
||||
30
third_party/bazel/rules_haskell/tests/multi_repl/bc/BUILD.bazel
vendored
Normal file
30
third_party/bazel/rules_haskell/tests/multi_repl/bc/BUILD.bazel
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(
|
||||
"@io_tweag_rules_haskell//haskell:haskell.bzl",
|
||||
"haskell_library",
|
||||
)
|
||||
|
||||
haskell_library(
|
||||
name = "b",
|
||||
srcs = [
|
||||
"src/BC/B.hs",
|
||||
],
|
||||
src_strip_prefix = "src",
|
||||
deps = [
|
||||
"//tests/hackage:base",
|
||||
"//tests/multi_repl/a",
|
||||
],
|
||||
)
|
||||
|
||||
haskell_library(
|
||||
name = "c",
|
||||
srcs = [
|
||||
"src/BC/C.hs",
|
||||
],
|
||||
src_strip_prefix = "src",
|
||||
deps = [
|
||||
":b",
|
||||
"//tests/hackage:base",
|
||||
],
|
||||
)
|
||||
6
third_party/bazel/rules_haskell/tests/multi_repl/bc/src/BC/B.hs
vendored
Normal file
6
third_party/bazel/rules_haskell/tests/multi_repl/bc/src/BC/B.hs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
module BC.B ( b ) where
|
||||
|
||||
import A.A ( a )
|
||||
|
||||
b :: ()
|
||||
b = a
|
||||
6
third_party/bazel/rules_haskell/tests/multi_repl/bc/src/BC/C.hs
vendored
Normal file
6
third_party/bazel/rules_haskell/tests/multi_repl/bc/src/BC/C.hs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
module BC.C ( c ) where
|
||||
|
||||
import BC.B ( b )
|
||||
|
||||
c :: ()
|
||||
c = b
|
||||
Loading…
Add table
Add a link
Reference in a new issue