2020-05-27 21:18:21 +03:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2020-05-19 19:16:16 +03:00
|
|
|
|
|
|
|
load(
|
|
|
|
"@rules_haskell//haskell:defs.bzl",
|
|
|
|
"haskell_library",
|
2020-05-21 22:24:16 +03:00
|
|
|
"haskell_test",
|
2020-05-19 19:16:16 +03:00
|
|
|
)
|
2020-05-22 02:24:56 +03:00
|
|
|
load(
|
2020-05-27 21:18:21 +03:00
|
|
|
"@rules_haskell//haskell:cabal.bzl",
|
|
|
|
"haskell_cabal_binary",
|
|
|
|
"haskell_cabal_library",
|
2020-05-22 02:24:56 +03:00
|
|
|
)
|
2020-06-23 16:45:10 +03:00
|
|
|
load(
|
|
|
|
"//:build/common.bzl",
|
2020-07-01 08:35:20 +03:00
|
|
|
"EXECUTABLE_FLAGS",
|
2020-07-01 07:35:09 +03:00
|
|
|
"GHC_FLAGS",
|
2020-06-23 16:45:10 +03:00
|
|
|
)
|
2020-05-19 19:16:16 +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"]),
|
2020-07-01 07:35:09 +03:00
|
|
|
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",
|
2020-06-26 23:24:47 +03:00
|
|
|
"@lingo",
|
2020-05-19 19:16:16 +03:00
|
|
|
"@stackage//:aeson",
|
|
|
|
"@stackage//:generic-monoid",
|
|
|
|
"@stackage//:hashable",
|
2020-05-27 21:18:21 +03:00
|
|
|
"@stackage//:pathtype",
|
2020-05-19 19:16:16 +03:00
|
|
|
"@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",
|
|
|
|
],
|
|
|
|
)
|