mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
a925f0174c
* update copyright notices for 2021 To be merged on 2021-01-01. CHANGELOG_BEGIN CHANGELOG_END * patch-bazel-windows & da-ghc-lib
57 lines
1.3 KiB
Python
57 lines
1.3 KiB
Python
# Copyright (c) 2021 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 = "daml-lf-ast",
|
|
srcs = glob(["src/**/*.hs"]),
|
|
hackage_deps = [
|
|
"aeson",
|
|
"base",
|
|
"bytestring",
|
|
"containers",
|
|
"deepseq",
|
|
"Decimal",
|
|
"extra",
|
|
"filepath",
|
|
"ghc-lib-parser",
|
|
"hashable",
|
|
"lens",
|
|
"mtl",
|
|
"recursion-schemes",
|
|
"safe",
|
|
"scientific",
|
|
"template-haskell",
|
|
"text",
|
|
"time",
|
|
"unordered-containers",
|
|
],
|
|
src_strip_prefix = "src",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//libs-haskell/da-hs-base",
|
|
],
|
|
)
|
|
|
|
da_haskell_test(
|
|
name = "tests",
|
|
srcs = glob(["test/**/*.hs"]),
|
|
hackage_deps = [
|
|
"base",
|
|
"containers",
|
|
"extra",
|
|
"tasty",
|
|
"tasty-hunit",
|
|
],
|
|
main_function = "DA.Daml.LF.Ast.Tests.main",
|
|
src_strip_prefix = "test",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":daml-lf-ast",
|
|
"//compiler/daml-lf-tools",
|
|
"//libs-haskell/da-hs-base",
|
|
"//libs-haskell/test-utils",
|
|
],
|
|
)
|