1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 16:37:50 +03:00
semantic/BUILD.bazel

67 lines
1.7 KiB
Python
Raw Normal View History

2020-06-27 23:24:41 +03:00
# This build file specifies the packages from GHC bindists that
# we want to use, as well as the top-level hie-bios REPL target
# that the tooling uses. You probably don't need to edit it.
package(default_visibility = ["//visibility:public"])
load(
"@rules_haskell//haskell:defs.bzl",
"haskell_repl",
2020-06-25 15:56:09 +03:00
"haskell_toolchain_library",
)
2020-07-01 07:38:44 +03:00
# You can specify what kind of compilation mode you want by providing
# --compilation_mode=MODE to `bazel build`, where MODE is one of
# 'fastbuild', 'dbg', or 'opt'. We declare targets corresponding to this
# setting, which are used in common.bzl to vary compiler flags based
# on the compilation mode. Note that you can also just write `-c opt`
# if you're not into writing out compilation_mode.
config_setting(
name = "release",
values = {"compilation_mode": "opt"},
)
config_setting(
name = "development",
values = {"compilation_mode": "fastbuild"},
)
config_setting(
name = "debug",
values = {"compilation_mode": "dbg"},
)
2020-06-25 15:56:09 +03:00
# The GHC bindists provide us with a set of builtin libraries.
# We use them rather than looking up those in stackage.
haskell_toolchain_library(name = "base")
haskell_toolchain_library(name = "bytestring")
haskell_toolchain_library(name = "containers")
2020-06-27 19:47:04 +03:00
haskell_toolchain_library(name = "deepseq")
haskell_toolchain_library(name = "filepath")
2020-07-01 17:40:05 +03:00
haskell_toolchain_library(name = "ghc-prim")
2020-06-27 19:47:04 +03:00
haskell_toolchain_library(name = "text")
2020-06-27 19:53:17 +03:00
haskell_toolchain_library(name = "haskeline")
haskell_toolchain_library(name = "process")
haskell_toolchain_library(name = "template-haskell")
haskell_toolchain_library(name = "transformers")
2020-07-01 07:38:44 +03:00
# This repl target is used by hie-bios + ghcide.
haskell_repl(
name = "hie-bios",
collect_data = False,
2020-06-27 19:47:04 +03:00
deps = ["//semantic"],
)