2021-01-01 21:49:51 +03:00
|
|
|
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2019-04-04 11:33:38 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-08-30 11:45:03 +03:00
|
|
|
load("//bazel_tools:haskell.bzl", "da_haskell_library", "da_haskell_test")
|
2019-04-04 11:33:38 +03:00
|
|
|
|
2019-04-12 14:10:16 +03:00
|
|
|
da_haskell_library(
|
|
|
|
name = "daml-lf-ast",
|
|
|
|
srcs = glob(["src/**/*.hs"]),
|
2019-09-06 12:01:09 +03:00
|
|
|
hackage_deps = [
|
2020-02-20 20:57:35 +03:00
|
|
|
"aeson",
|
2019-04-12 14:10:16 +03:00
|
|
|
"base",
|
2019-11-06 21:35:40 +03:00
|
|
|
"bytestring",
|
2019-04-12 14:10:16 +03:00
|
|
|
"containers",
|
|
|
|
"deepseq",
|
2019-08-30 11:45:03 +03:00
|
|
|
"Decimal",
|
2019-04-12 14:10:16 +03:00
|
|
|
"extra",
|
2020-02-24 21:12:29 +03:00
|
|
|
"filepath",
|
|
|
|
"ghc-lib-parser",
|
2019-05-04 20:51:56 +03:00
|
|
|
"hashable",
|
2019-04-12 14:10:16 +03:00
|
|
|
"lens",
|
|
|
|
"mtl",
|
|
|
|
"recursion-schemes",
|
|
|
|
"safe",
|
|
|
|
"scientific",
|
2019-05-04 20:51:56 +03:00
|
|
|
"template-haskell",
|
2019-04-12 14:10:16 +03:00
|
|
|
"text",
|
|
|
|
"time",
|
|
|
|
"unordered-containers",
|
|
|
|
],
|
|
|
|
src_strip_prefix = "src",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
2019-08-30 11:45:03 +03:00
|
|
|
|
|
|
|
da_haskell_test(
|
|
|
|
name = "tests",
|
|
|
|
srcs = glob(["test/**/*.hs"]),
|
2019-09-06 12:01:09 +03:00
|
|
|
hackage_deps = [
|
2019-08-30 11:45:03 +03:00
|
|
|
"base",
|
2019-12-10 15:36:55 +03:00
|
|
|
"containers",
|
2020-01-10 20:51:51 +03:00
|
|
|
"extra",
|
2019-08-30 11:45:03 +03:00
|
|
|
"tasty",
|
|
|
|
"tasty-hunit",
|
|
|
|
],
|
|
|
|
main_function = "DA.Daml.LF.Ast.Tests.main",
|
|
|
|
src_strip_prefix = "test",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":daml-lf-ast",
|
2020-01-10 20:51:51 +03:00
|
|
|
"//compiler/daml-lf-tools",
|
2019-08-30 11:45:03 +03:00
|
|
|
"//libs-haskell/da-hs-base",
|
2020-03-26 21:24:34 +03:00
|
|
|
"//libs-haskell/test-utils",
|
2019-08-30 11:45:03 +03:00
|
|
|
],
|
|
|
|
)
|