1
1
mirror of https://github.com/github/semantic.git synced 2024-12-03 22:54:16 +03:00
semantic/semantic-source/BUILD.bazel

56 lines
1.2 KiB
Python
Raw Normal View History

2020-05-27 21:18:21 +03:00
package(default_visibility = ["//visibility:public"])
load(
"@rules_haskell//haskell:defs.bzl",
"haskell_library",
2020-05-21 22:24:16 +03:00
"haskell_test",
)
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",
2020-07-01 08:35:20 +03:00
"EXECUTABLE_FLAGS",
"GHC_FLAGS",
2020-06-23 16:45:10 +03:00
)
haskell_library(
2020-06-27 19:47:04 +03:00
name = "semantic-source",
2020-05-27 21:18:21 +03:00
srcs = glob(["src/**/*.hs"]),
compiler_flags = GHC_FLAGS + ["-XOverloadedStrings"],
2020-05-27 21:18:21 +03:00
deps = [
2020-06-25 15:56:09 +03:00
"//:base",
"//:bytestring",
"//:containers",
2020-06-27 19:47:04 +03:00
"//:deepseq",
"//:filepath",
"//:text",
"@lingo",
"@stackage//:aeson",
"@stackage//:generic-monoid",
"@stackage//:hashable",
2020-05-27 21:18:21 +03:00
"@stackage//:pathtype",
"@stackage//:semilattices",
],
)
2020-05-21 22:24:16 +03:00
haskell_test(
2020-05-27 21:18:21 +03:00
name = "test",
srcs = [
"test/Source/Test.hs",
"test/Test.hs",
],
2020-07-01 08:35:20 +03:00
compiler_flags = GHC_FLAGS + EXECUTABLE_FLAGS,
2020-05-27 21:18:21 +03:00
deps = [
2020-06-27 19:47:04 +03:00
":semantic-source",
2020-06-25 15:56:09 +03:00
"//:base",
2020-06-27 19:47:04 +03:00
"//:text",
2020-05-21 22:24:16 +03:00
"@stackage//:hedgehog",
"@stackage//:tasty",
"@stackage//:tasty-hedgehog",
"@stackage//:tasty-hunit",
],
)