@@ -1,129 +0,0 @@
1−# Copyright (c) 2019 The DAML Authors. All rights reserved.
2−# SPDX-License-Identifier: Apache-2.0
3−
4−load(
5− "//bazel_tools:haskell.bzl",
6− "da_haskell_binary",
7− "da_haskell_library",
8− "da_haskell_test",
9−)
10−load("@os_info//:os_info.bzl", "is_windows")
11−
12−depends = [
13− "aeson",
14− "async",
15− "base",
16− "binary",
17− "bytestring",
18− "containers",
19− "data-default",
20− "deepseq",
21− "directory",
22− "extra",
23− "filepath",
24− "hashable",
25− "haskell-lsp",
26− "haskell-lsp-types",
27− "mtl",
28− "network-uri",
29− "prettyprinter",
30− "prettyprinter-ansi-terminal",
31− "rope-utf16-splay",
32− "safe-exceptions",
33− "sorted-list",
34− "shake",
35− "stm",
36− "syb",
37− "text",
38− "time",
39− "transformers",
40− "unordered-containers",
41− "utf8-string",
42−] + ([] if is_windows else ["unix"])
43−
44−hidden = [
45− "Development.IDE.Core.Compile",
46− "Development.IDE.GHC.Compat",
47− "Development.IDE.GHC.CPP",
48− "Development.IDE.GHC.Error",
49− "Development.IDE.GHC.Orphans",
50− "Development.IDE.GHC.Warnings",
51− "Development.IDE.Import.FindImports",
52− "Development.IDE.LSP.CodeAction",
53− "Development.IDE.LSP.Definition",
54− "Development.IDE.LSP.Hover",
55− "Development.IDE.LSP.Notifications",
56− "Development.IDE.Spans.AtPoint",
57− "Development.IDE.Spans.Calculate",
58− "Development.IDE.Spans.Documentation",
59− "Development.IDE.Spans.Type",
60−]
61−
62−da_haskell_library(
63− name = "ghcide",
64− srcs = glob(["src/**/*.hs"]),
65− hackage_deps = depends + [
66− "ghc-lib",
67− "ghc-lib-parser",
68− ],
69− hidden_modules = hidden,
70− src_strip_prefix = "src",
71− visibility = ["//visibility:public"],
72− deps = [] if is_windows else [":getmodtime"],
73−)
74−
75−# Used in getModificationTimeRule in Development.IDE.Core.FileStore
76−cc_library(
77− name = "getmodtime",
78− srcs = glob(["cbits/getmodtime.c"]),
79− copts = [
80− "-Wall",
81− "-Werror",
82− ],
83−) if not is_windows else None
84−
85−da_haskell_library(
86− name = "ghcide-public",
87− srcs = glob(["src/**/*.hs"]),
88− compiler_flags = ["-DGHC_STABLE"],
89− hackage_deps = depends + [
90− "ghc",
91− "ghc-boot",
92− "ghc-boot-th",
93− ],
94− hidden_modules = hidden,
95− # Override the -hide-package flags defined in WORKSPACE
96− # -hide-package=ghc-boot-th -hide-package=ghc-boot
97− repl_ghci_args = [
98− "-package=ghc-boot",
99− "-package=ghc-boot-th",
100− ],
101− src_strip_prefix = "src",
102− visibility = ["//visibility:public"],
103− deps = [] if is_windows else [":getmodtime"],
104−)
105−
106−da_haskell_binary(
107− name = "ghcide-exe",
108− srcs = glob(["exe/**/*.hs"]),
109− hackage_deps = [
110− "base",
111− "containers",
112− "data-default",
113− "directory",
114− "extra",
115− "filepath",
116− "ghc-paths",
117− "ghc",
118− "haskell-lsp",
119− "hie-bios",
120− "optparse-applicative",
121− "shake",
122− "text",
123− ],
124− src_strip_prefix = "test",
125− visibility = ["//visibility:public"],
126− deps = [
127− "ghcide-public",
128− ],
129−)