2023-01-04 20:21:15 +03:00
|
|
|
# Copyright (c) 2023 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
|
|
|
|
|
2021-07-07 16:44:47 +03:00
|
|
|
load("//bazel_tools:haskell.bzl", "da_haskell_library", "da_haskell_test")
|
2019-04-04 11:33:38 +03:00
|
|
|
|
|
|
|
da_haskell_library(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "client",
|
|
|
|
srcs = glob(["src/**/*.hs"]),
|
2019-09-06 12:01:09 +03:00
|
|
|
hackage_deps = [
|
2019-04-12 14:10:16 +03:00
|
|
|
"async",
|
|
|
|
"base",
|
|
|
|
"binary",
|
2019-04-24 18:59:08 +03:00
|
|
|
"blaze-html",
|
2019-04-12 14:10:16 +03:00
|
|
|
"bytestring",
|
|
|
|
"conduit-extra",
|
2019-04-24 18:59:08 +03:00
|
|
|
"conduit",
|
2019-04-12 14:10:16 +03:00
|
|
|
"containers",
|
|
|
|
"cryptonite",
|
|
|
|
"deepseq",
|
|
|
|
"directory",
|
|
|
|
"extra",
|
|
|
|
"filepath",
|
2023-05-02 20:51:45 +03:00
|
|
|
"ghcide",
|
2019-08-23 16:10:15 +03:00
|
|
|
"grpc-haskell",
|
|
|
|
"grpc-haskell-core",
|
2019-04-12 14:10:16 +03:00
|
|
|
"hashable",
|
|
|
|
"lens",
|
|
|
|
"mtl",
|
|
|
|
"process",
|
2019-04-24 18:59:08 +03:00
|
|
|
"proto3-suite",
|
|
|
|
"proto3-wire",
|
2023-05-02 20:51:45 +03:00
|
|
|
"random",
|
2019-04-12 14:10:16 +03:00
|
|
|
"split",
|
|
|
|
"stm",
|
|
|
|
"text",
|
|
|
|
"time",
|
|
|
|
"transformers",
|
|
|
|
"uri-encode",
|
|
|
|
"vector",
|
|
|
|
],
|
|
|
|
src_strip_prefix = "src",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//compiler/daml-lf-ast",
|
2023-06-05 18:07:31 +03:00
|
|
|
"//compiler/daml-lf-proto-encode",
|
|
|
|
"//compiler/daml-lf-proto-util",
|
2020-04-09 18:11:40 +03:00
|
|
|
"//compiler/damlc/daml-opts:daml-opts-types",
|
2019-04-12 14:10:16 +03:00
|
|
|
"//compiler/scenario-service/protos:scenario_service_haskell_proto",
|
2019-07-02 15:22:35 +03:00
|
|
|
"//daml-assistant:daml-project-config",
|
2019-04-12 14:10:16 +03:00
|
|
|
"//libs-haskell/bazel-runfiles",
|
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
2021-07-07 16:44:47 +03:00
|
|
|
|
|
|
|
da_haskell_test(
|
|
|
|
name = "tests",
|
|
|
|
srcs = glob(["test/**/*.hs"]),
|
|
|
|
hackage_deps = [
|
|
|
|
"async",
|
|
|
|
"base",
|
|
|
|
"binary",
|
|
|
|
"blaze-html",
|
|
|
|
"bytestring",
|
|
|
|
"conduit-extra",
|
|
|
|
"conduit",
|
|
|
|
"containers",
|
|
|
|
"cryptonite",
|
|
|
|
"deepseq",
|
|
|
|
"directory",
|
|
|
|
"extra",
|
|
|
|
"filepath",
|
|
|
|
"grpc-haskell",
|
|
|
|
"grpc-haskell-core",
|
|
|
|
"hashable",
|
|
|
|
"lens",
|
|
|
|
"mtl",
|
|
|
|
"process",
|
|
|
|
"proto3-suite",
|
|
|
|
"proto3-wire",
|
|
|
|
"split",
|
|
|
|
"stm",
|
|
|
|
"text",
|
|
|
|
"tasty",
|
|
|
|
"tasty-hunit",
|
|
|
|
"time",
|
|
|
|
"transformers",
|
|
|
|
"uri-encode",
|
|
|
|
"vector",
|
|
|
|
],
|
|
|
|
main_function = "DA.Daml.LF.PrettyScenarioSpec.main",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":client",
|
|
|
|
"//compiler/daml-lf-ast",
|
|
|
|
"//compiler/daml-lf-proto",
|
|
|
|
"//compiler/damlc/daml-opts:daml-opts-types",
|
|
|
|
"//compiler/scenario-service/protos:scenario_service_haskell_proto",
|
|
|
|
"//daml-assistant:daml-project-config",
|
|
|
|
"//libs-haskell/bazel-runfiles",
|
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
|
|
|
)
|