mirror of
https://github.com/github/semantic.git
synced 2024-12-02 11:23:05 +03:00
40 lines
1016 B
Python
40 lines
1016 B
Python
# 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_toolchain_library",
|
||
"haskell_library",
|
||
"haskell_binary",
|
||
)
|
||
|
||
# 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 = "MY_LIBRARY_NAME",
|
||
# src_strip_prefix = "src",
|
||
# srcs = glob(['src/**/*.hs']),
|
||
# deps = [
|
||
# "base_pkg"
|
||
# ],
|
||
# )
|
||
|
||
haskell_library(
|
||
name = "semantic-source"
|
||
src_strip_prefix = "semantic-source/src",
|
||
srcs = glob(['semantic-source/**/*.hs'])
|
||
)
|
||
|
||
# An example binary using the Prelude module from the
|
||
# GHC base package, to print the hello world.
|
||
haskell_binary(
|
||
name = "example",
|
||
srcs = [":Example.hs"],
|
||
deps = [":base"],
|
||
)
|