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
15
third_party/bazel/rules_haskell/tests/package-id-clash-binary/BUILD.bazel
vendored
Normal file
15
third_party/bazel/rules_haskell/tests/package-id-clash-binary/BUILD.bazel
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
load(
|
||||
"@io_tweag_rules_haskell//haskell:haskell.bzl",
|
||||
"haskell_test",
|
||||
"haskell_toolchain_library",
|
||||
)
|
||||
|
||||
haskell_test(
|
||||
name = "bin",
|
||||
srcs = ["Main.hs"],
|
||||
deps = [
|
||||
"//tests/hackage:base",
|
||||
"//tests/package-id-clash-binary/a:foo",
|
||||
"//tests/package-id-clash-binary/b:foo",
|
||||
],
|
||||
)
|
||||
6
third_party/bazel/rules_haskell/tests/package-id-clash-binary/Main.hs
vendored
Normal file
6
third_party/bazel/rules_haskell/tests/package-id-clash-binary/Main.hs
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
module Main where
|
||||
|
||||
import Foo
|
||||
import Baz
|
||||
|
||||
main = print $ x + y
|
||||
12
third_party/bazel/rules_haskell/tests/package-id-clash-binary/a/BUILD.bazel
vendored
Normal file
12
third_party/bazel/rules_haskell/tests/package-id-clash-binary/a/BUILD.bazel
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
load(
|
||||
"@io_tweag_rules_haskell//haskell:haskell.bzl",
|
||||
"haskell_library",
|
||||
"haskell_toolchain_library",
|
||||
)
|
||||
|
||||
haskell_library(
|
||||
name = "foo",
|
||||
srcs = ["Foo.hs"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//tests/hackage:base"],
|
||||
)
|
||||
3
third_party/bazel/rules_haskell/tests/package-id-clash-binary/a/Foo.hs
vendored
Normal file
3
third_party/bazel/rules_haskell/tests/package-id-clash-binary/a/Foo.hs
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module Foo where
|
||||
|
||||
x = 2
|
||||
12
third_party/bazel/rules_haskell/tests/package-id-clash-binary/b/BUILD.bazel
vendored
Normal file
12
third_party/bazel/rules_haskell/tests/package-id-clash-binary/b/BUILD.bazel
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
load(
|
||||
"@io_tweag_rules_haskell//haskell:haskell.bzl",
|
||||
"haskell_library",
|
||||
"haskell_toolchain_library",
|
||||
)
|
||||
|
||||
haskell_library(
|
||||
name = "foo",
|
||||
srcs = ["Baz.hs"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//tests/hackage:base"],
|
||||
)
|
||||
3
third_party/bazel/rules_haskell/tests/package-id-clash-binary/b/Baz.hs
vendored
Normal file
3
third_party/bazel/rules_haskell/tests/package-id-clash-binary/b/Baz.hs
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module Baz where
|
||||
|
||||
y = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue