feat(third_party/bazel): Check in rules_haskell from Tweag

This commit is contained in:
Vincent Ambo 2019-07-04 11:18:12 +01:00
parent 2eb1dc26e4
commit f723b8b878
479 changed files with 51484 additions and 0 deletions

View 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"],
)

View 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",
],
)

View file

@ -0,0 +1,4 @@
module A.A ( a ) where
a :: ()
a = ()

View 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",
],
)

View file

@ -0,0 +1,6 @@
module BC.B ( b ) where
import A.A ( a )
b :: ()
b = a

View file

@ -0,0 +1,6 @@
module BC.C ( c ) where
import BC.B ( b )
c :: ()
c = b