2020-06-09 20:52:39 +03:00
|
|
|
|
# Set all target’s visibility in this package to "public".
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
|
|
# Load rules_haskell rules.
|
|
|
|
|
load(
|
|
|
|
|
"@rules_haskell//haskell:defs.bzl",
|
|
|
|
|
"haskell_binary",
|
|
|
|
|
"haskell_library",
|
|
|
|
|
"haskell_toolchain_library",
|
|
|
|
|
)
|
|
|
|
|
load(
|
|
|
|
|
"@rules_haskell//haskell:cabal.bzl",
|
|
|
|
|
"haskell_cabal_binary",
|
|
|
|
|
"haskell_cabal_library",
|
|
|
|
|
)
|
2020-06-23 16:45:10 +03:00
|
|
|
|
load(
|
|
|
|
|
"//:build/common.bzl",
|
|
|
|
|
"STANDARD_GHC_WARNINGS",
|
|
|
|
|
)
|
2020-06-09 20:52:39 +03:00
|
|
|
|
|
|
|
|
|
# haskell_toolchain_library can access builtin GHC packages
|
|
|
|
|
# and assign them a bazel target name, so that they
|
|
|
|
|
# can be referenced as dependencies.
|
|
|
|
|
haskell_toolchain_library(name = "base")
|
|
|
|
|
|
|
|
|
|
# You can add your own libraries with haskell_library.
|
|
|
|
|
haskell_library(
|
|
|
|
|
name = "lib",
|
|
|
|
|
srcs = glob(["src/**/*.hs"]),
|
2020-06-23 16:45:10 +03:00
|
|
|
|
compiler_flags = STANDARD_GHC_WARNINGS,
|
2020-06-10 19:08:45 +03:00
|
|
|
|
extra_srcs = ["//vendor:tsx-node-types.json"],
|
2020-06-09 20:52:39 +03:00
|
|
|
|
deps = [
|
|
|
|
|
":base",
|
|
|
|
|
"//semantic-analysis:lib",
|
|
|
|
|
"//semantic-ast:lib",
|
|
|
|
|
"//semantic-core:lib",
|
2020-06-09 21:56:19 +03:00
|
|
|
|
"//semantic-proto:lib",
|
2020-06-09 20:52:39 +03:00
|
|
|
|
"//semantic-scope-graph:lib",
|
|
|
|
|
"//semantic-source:lib",
|
|
|
|
|
"//semantic-tags:lib",
|
|
|
|
|
"@stackage//:aeson",
|
|
|
|
|
"@stackage//:algebraic-graphs",
|
|
|
|
|
"@stackage//:containers",
|
|
|
|
|
"@stackage//:fused-effects",
|
|
|
|
|
"@stackage//:fused-syntax",
|
|
|
|
|
"@stackage//:generic-lens",
|
|
|
|
|
"@stackage//:generic-monoid",
|
|
|
|
|
"@stackage//:hashable",
|
|
|
|
|
"@stackage//:lens",
|
|
|
|
|
"@stackage//:pathtype",
|
|
|
|
|
"@stackage//:semilattices",
|
|
|
|
|
"@stackage//:template-haskell",
|
|
|
|
|
"@stackage//:text",
|
|
|
|
|
"@stackage//:tree-sitter",
|
|
|
|
|
"@stackage//:tree-sitter-tsx",
|
|
|
|
|
],
|
|
|
|
|
)
|