1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00
semantic/semantic-core/BUILD.bazel

62 lines
1.4 KiB
Python
Raw Normal View History

2020-05-27 21:18:21 +03:00
package(default_visibility = ["//visibility:public"])
2020-05-19 20:00:56 +03:00
load(
"@rules_haskell//haskell:defs.bzl",
"haskell_library",
2020-05-21 22:45:54 +03:00
"haskell_test",
2020-05-19 20:00:56 +03:00
)
load(
2020-05-27 21:18:21 +03:00
"@rules_haskell//haskell:cabal.bzl",
"haskell_cabal_binary",
"haskell_cabal_library",
)
2020-06-23 16:45:10 +03:00
load(
"//:build/common.bzl",
"GHC_FLAGS",
2020-06-23 21:54:32 +03:00
"STANDARD_EXECUTABLE_FLAGS",
2020-06-23 16:45:10 +03:00
)
2020-05-19 20:00:56 +03:00
haskell_library(
2020-06-27 19:47:04 +03:00
name = "semantic-core",
2020-05-27 21:18:21 +03:00
srcs = glob(["src/**/*.hs"]),
compiler_flags = GHC_FLAGS,
2020-05-27 21:18:21 +03:00
deps = [
2020-06-25 15:56:09 +03:00
"//:base",
2020-06-27 19:47:04 +03:00
"//:text",
"//semantic-analysis",
"//semantic-source",
2020-05-19 20:00:56 +03:00
"@stackage//:fused-effects",
"@stackage//:fused-syntax",
"@stackage//:hashable",
"@stackage//:parsers",
"@stackage//:pathtype",
"@stackage//:prettyprinter",
"@stackage//:prettyprinter-ansi-terminal",
"@stackage//:trifecta",
"@stackage//:unordered-containers",
],
2020-05-21 22:45:54 +03:00
)
2020-05-19 20:00:56 +03:00
2020-05-21 22:45:54 +03:00
haskell_test(
2020-05-27 21:18:21 +03:00
name = "test",
srcs = glob([
"test/*.hs",
"test/Source/Test.hs",
]),
compiler_flags = GHC_FLAGS + STANDARD_EXECUTABLE_FLAGS,
2020-05-27 21:18:21 +03:00
deps = [
2020-06-25 15:56:09 +03:00
"//:base",
2020-06-27 19:47:04 +03:00
"//:text",
"//semantic-analysis",
"//semantic-core",
"//semantic-source",
2020-05-21 22:45:54 +03:00
"@stackage//:fused-effects",
"@stackage//:fused-syntax",
"@stackage//:hedgehog",
"@stackage//:tasty",
"@stackage//:tasty-hedgehog",
"@stackage//:tasty-hunit",
"@stackage//:trifecta",
],
2020-05-19 20:00:56 +03:00
)