daml/libs-haskell/da-hs-base/BUILD.bazel
Gary Verhaegen 1872c668a5
replace DAML Authors with DA in copyright headers (#5228)
Change requested by Manoj.

CHANGELOG_BEGIN
CHANGELOG_END
2020-03-27 01:26:10 +01:00

82 lines
1.8 KiB
Python

# Copyright (c) 2020 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")
load("@os_info//:os_info.bzl", "is_windows")
da_haskell_library(
name = "da-hs-base",
srcs = glob(["src/**/*.hs"]),
hackage_deps = [
"aeson-pretty",
"aeson",
"ansi-terminal",
"async",
"base",
"base16-bytestring",
"base64-bytestring",
"binary",
"blaze-html",
"bytestring",
"conduit",
"containers",
"deepseq",
"directory",
"dlist",
"extra",
"filepath",
"hashable",
"http-conduit",
"http-types",
"lens",
"monad-loops",
"mtl",
"optparse-applicative",
"pretty-show",
"pretty",
"random",
"safe",
"safe-exceptions",
"stm",
"tar-conduit",
"tasty-hunit",
"tasty-quickcheck",
"tasty",
"template-haskell",
"text",
"time",
"transformers-base",
"transformers",
"unordered-containers",
"unix-compat",
"utf8-string",
"uuid",
"vector",
] + ([] if is_windows else ["unix"]),
src_strip_prefix = "src",
visibility = ["//visibility:public"],
deps = [
"//:sdk-version-hs-lib",
"//daml-assistant:daml-project-config",
],
)
da_haskell_test(
name = "da-hs-base-tests",
srcs = glob(["tests/**/*.hs"]),
hackage_deps = [
"aeson",
"extra",
"tasty",
"base",
"directory",
"tasty-hunit",
"text",
],
main_function = "DataLimit.main",
visibility = ["//visibility:public"],
deps = [
":da-hs-base",
],
)