-
-
Notifications
You must be signed in to change notification settings - Fork 389
/
Copy pathhls-plugin-api.cabal
149 lines (133 loc) · 3.34 KB
/
hls-plugin-api.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
cabal-version: 2.4
name: hls-plugin-api
version: 2.8.0.0
synopsis: Haskell Language Server API for plugin communication
description:
Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
homepage: https://github.com/haskell/haskell-language-server#readme
bug-reports: https://github.com/haskell/haskell-language-server/issues
license: Apache-2.0
license-file: LICENSE
author: The Haskell IDE Team
maintainer: [email protected]
copyright: The Haskell IDE Team
category: Development
build-type: Simple
flag pedantic
description: Enable -Werror
default: False
manual: True
-- This flag can be used to avoid the dependency on hw-fingertree.
-- We can set this temporarily if we have problems building hw-fingertree
-- for a new version of GHC.
flag use-fingertree
description: Use fingertree implementation of RangeMap
default: True
manual: False
source-repository head
type: git
location: https://github.com/haskell/haskell-language-server
common warnings
ghc-options:
-Wall -Wredundant-constraints -Wunused-packages
-Wno-name-shadowing -Wno-unticked-promoted-constructors
library
import: warnings
exposed-modules:
Ide.Logger
Ide.Plugin.Config
Ide.Plugin.ConfigUtils
Ide.Plugin.Error
Ide.Plugin.HandleRequestTypes
Ide.Plugin.Properties
Ide.Plugin.RangeMap
Ide.Plugin.Resolve
Ide.PluginUtils
Ide.Types
hs-source-dirs: src
build-depends:
, aeson
, base >=4.12 && <5
, co-log-core
, containers
, data-default
, dependent-map
, dependent-sum >=0.7
, Diff ^>=0.4.0
, dlist
, extra
, filepath
, ghc
, hashable
, hls-graph == 2.8.0.0
, lens
, lens-aeson
, lsp ^>=2.6
, megaparsec >=9.0
, mtl
, opentelemetry >=0.4
, optparse-applicative
, prettyprinter
, regex-tdfa >=1.3.1.0
, stm
, text
, time
, transformers
, unliftio
, unordered-containers
if os(windows)
build-depends: Win32
else
build-depends: unix
if flag(pedantic)
ghc-options: -Werror
if flag(use-fingertree)
cpp-options: -DUSE_FINGERTREE
build-depends: hw-fingertree
default-language: GHC2021
default-extensions:
DataKinds
test-suite tests
import: warnings
type: exitcode-stdio-1.0
default-language: GHC2021
hs-source-dirs: test
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
Ide.PluginUtilsTest
Ide.TypesTests
build-depends:
, bytestring
, aeson
, base
, containers
, data-default
, hls-plugin-api
, lens
, lsp-types
, tasty
, tasty-golden
, tasty-hunit
, tasty-quickcheck
, tasty-rerun
, text
benchmark rangemap-benchmark
import: warnings
-- Benchmark doesn't make sense if fingertree implementation
-- is not used.
if !flag(use-fingertree)
buildable: False
type: exitcode-stdio-1.0
default-language: GHC2021
hs-source-dirs: bench
main-is: Main.hs
ghc-options: -threaded
build-depends:
, base
, criterion
, deepseq
, hls-plugin-api
, lsp-types
, random
, random-fu