daml/compiler/daml-lf-ast/BUILD.bazel
associahedron 0eed4afb3f Add Numeric literals in daml-lf-ast and daml-lf-proto. (#2706)
* Add Numeric literals.

* Decode numeric literals

* Add tests and fix Read for s=0

* lint

* Copyright header

* Use numericMaxScale in Serializability check

* Fix comment!
2019-08-30 08:45:03 +00:00

49 lines
1.0 KiB
Python

# Copyright (c) 2019 The DAML Authors. 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"]),
hazel_deps = [
"base",
"containers",
"deepseq",
"Decimal",
"extra",
"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"]),
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",
],
)