on master help sign in
Merge pull request #5 from digital-asset/remove-bazel

Remove Bazel config

commit31e000e8a10ac42fe24780d9e26169e591f57581 authorMoritz Kiefer <moritz.kiefer@purelyfunctional.org> dateTue 10 Sep 2019, 17:14 (7 years ago) parent63247abde8148b
3 files changed−210
BUILD.bazel−129 test/BUILD.bazel−65 test/bazel/Development/IDE/Test/Runfiles.hs−16
BUILD.bazeldeleted−129
@@ -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−)
test/BUILD.bazeldeleted−65
@@ -1,65 +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_library",
7− "da_haskell_test",
8−)
9−
10−da_haskell_library(
11− name = "ghcide-testing",
12− srcs = glob(["src/**/*.hs"]),
13− hackage_deps = [
14− "base",
15− "extra",
16− "containers",
17− "haskell-lsp-types",
18− "lens",
19− "lsp-test",
20− "parser-combinators",
21− "tasty-hunit",
22− "text",
23− ],
24− src_strip_prefix = "src",
25− visibility = ["//visibility:public"],
26− deps = [
27− "//compiler/ghcide",
28− ],
29−)
30−
31−da_haskell_library(
32− name = "ghcide-test-runfiles",
33− srcs = glob(["bazel/**/*.hs"]),
34− hackage_deps = [
35− "base",
36− "filepath",
37− ],
38− src_strip_prefix = "bazel",
39− visibility = ["//visibility:public"],
40− deps = [
41− "//libs-haskell/bazel-runfiles",
42− ],
43−)
44−
45−da_haskell_test(
46− name = "ghcide-tests",
47− srcs = glob(["exe/**/*.hs"]),
48− data = ["//compiler/ghcide:ghcide-exe"],
49− hackage_deps = [
50− "base",
51− "extra",
52− "filepath",
53− "haskell-lsp-types",
54− "lsp-test",
55− "tasty",
56− "tasty-hunit",
57− "text",
58− ],
59− src_strip_prefix = "exe",
60− deps = [
61− ":ghcide-test-runfiles",
62− ":ghcide-testing",
63− "//compiler/ghcide",
64− ],
65−)
test/bazel/Development/IDE/Test/Runfiles.hsdeleted−16
@@ -1,16 +0,0 @@
1−-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2−-- SPDX-License-Identifier: Apache-2.0
3−
4−module Development.IDE.Test.Runfiles
5− ( locateGhcideExecutable
6− ) where
7−
8−import System.FilePath ((</>), FilePath)
9−
10−import DA.Bazel.Runfiles
11−
12−
13−locateGhcideExecutable :: IO FilePath
14−locateGhcideExecutable = locateRunfiles ghcideExePath
15− where
16− ghcideExePath = mainWorkspace </> exe "compiler/ghcide/ghcide-exe"