daml/libs-haskell/da-hs-base/BUILD.bazel
gleber aa70c7f64e
Enforce consistent formatting of BUILD files. (#412)
* Add buildifier targets.

The tool allows to check and format BUILD files in the repo.

To check if files are well formatted, run:

    bazel run //:buildifier

To fix badly-formatted files run:

    bazel run //:buildifier-fix

* Cleanup dade-copyright-headers formatting.

* Fix dade-copyright-headers on files with just the copyright.

* Run buildifier automatically on CI via 'fmt.sh'.

* Reformat all BUILD files with buildifier.

Excludes autogenerated Bazel files.
2019-04-12 13:10:16 +02:00

73 lines
1.5 KiB
Python

# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("//bazel_tools:haskell.bzl", "da_haskell_library", "da_haskell_test")
da_haskell_library(
name = "da-hs-base",
srcs = glob(["src/**/*.hs"]),
hazel_deps = [
"aeson",
"aeson-pretty",
"base",
"base16-bytestring",
"binary",
"bytestring",
"containers",
"deepseq",
"directory",
"dlist",
"extra",
"filepath",
"hashable",
"http-conduit",
"http-types",
"lens",
"managed",
"monad-control",
"mtl",
"random",
"safe",
"stm",
"tagged",
"tasty",
"tasty-hunit",
"tasty-quickcheck",
"uuid",
"pretty",
"pretty-show",
"utf8-string",
"template-haskell",
"text",
"time",
"transformers",
"transformers-base",
"unordered-containers",
"vector",
],
src_strip_prefix = "src",
visibility = ["//visibility:public"],
deps = [
"//daml-assistant:daml-project-config",
],
)
da_haskell_test(
name = "da-hs-base-tests",
srcs = glob(["tests/**/*.hs"]),
hazel_deps = [
"aeson",
"managed",
"tasty",
"base",
"directory",
"tasty-hunit",
"text",
],
main_function = "DataLimit.main",
visibility = ["//visibility:public"],
deps = [
":da-hs-base",
],
)