2019-08-13 19:23:03 +03:00
|
|
|
# Copyright (c) 2019 The DAML Authors. 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"]),
|
|
|
|
hazel_deps = [
|
|
|
|
"base",
|
|
|
|
"containers",
|
|
|
|
"deepseq",
|
2019-08-30 11:45:03 +03:00
|
|
|
"Decimal",
|
2019-04-12 14:10:16 +03:00
|
|
|
"extra",
|
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"]),
|
|
|
|
hazel_deps = [
|
|
|
|
"base",
|
|
|
|
"tasty",
|
|
|
|
"tasty-hunit",
|
|
|
|
],
|
|
|
|
main_function = "DA.Daml.LF.Ast.Tests.main",
|
|
|
|
src_strip_prefix = "test",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":daml-lf-ast",
|
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
|
|
|
)
|