on debug help sign in
ghcide/ghcide.cabal
280 lines 7.7 kB history raw
1cabal-version: 1.20
2build-type: Simple
3category: Development
4name: ghcide
5version: 0.1.0
6license: Apache-2.0
7license-file: LICENSE
8author: Digital Asset
9maintainer: Digital Asset
10copyright: Digital Asset 2018-2019
11synopsis: The core of an IDE
12description:
13 A library for building Haskell IDE's on top of the GHC API.
14homepage: https://github.com/digital-asset/ghcide#readme
15bug-reports: https://github.com/digital-asset/ghcide/issues
16tested-with: GHC==8.6.5
17extra-source-files: include/ghc-api-version.h README.md CHANGELOG.md
18 test/data/GotoHover.hs
20source-repository head
21 type: git
22 location: https://github.com/digital-asset/ghcide.git
24flag ghc-lib
25 description: build against ghc-lib instead of the ghc package
26 default: False
27 manual: True
29library
30 default-language: Haskell2010
31 build-depends:
32 aeson,
33 async,
34 base == 4.*,
35 binary,
36 bytestring,
37 containers,
38 data-default,
39 deepseq,
40 directory,
41 extra,
42 fuzzy,
43 filepath,
44 haddock-library >= 1.8,
45 hashable,
46 haskell-lsp-types == 0.21.*,
47 haskell-lsp == 0.21.*,
48 mtl,
49 network-uri,
50 prettyprinter-ansi-terminal,
51 prettyprinter-ansi-terminal,
52 prettyprinter,
53 regex-tdfa >= 1.3.1.0,
54 rope-utf16-splay,
55 safe-exceptions,
56 shake >= 0.18.4,
57 sorted-list,
58 stm,
59 syb,
60 text,
61 time,
62 transformers,
63 unordered-containers >= 0.2.10.0,
64 utf8-string,
65 hslogger
66 if flag(ghc-lib)
67 build-depends:
68 ghc-lib >= 8.8,
69 ghc-lib-parser >= 8.8
70 cpp-options: -DGHC_LIB
71 else
72 build-depends:
73 ghc-boot-th,
74 ghc-boot,
75 ghc >= 8.4
76 if !os(windows)
77 build-depends:
78 unix
79 c-sources:
80 cbits/getmodtime.c
82 default-extensions:
83 BangPatterns
84 DeriveFunctor
85 DeriveGeneric
86 GeneralizedNewtypeDeriving
87 LambdaCase
88 NamedFieldPuns
89 OverloadedStrings
90 RecordWildCards
91 ScopedTypeVariables
92 StandaloneDeriving
93 TupleSections
94 TypeApplications
95 ViewPatterns
97 hs-source-dirs:
98 src
99 include-dirs:
100 include
101 exposed-modules:
102 Development.IDE.Core.Debouncer
103 Development.IDE.Core.FileStore
104 Development.IDE.Core.IdeConfiguration
105 Development.IDE.Core.OfInterest
106 Development.IDE.Core.PositionMapping
107 Development.IDE.Core.Rules
108 Development.IDE.Core.RuleTypes
109 Development.IDE.Core.Service
110 Development.IDE.Core.Shake
111 Development.IDE.GHC.Error
112 Development.IDE.GHC.Util
113 Development.IDE.Import.DependencyInformation
114 Development.IDE.LSP.HoverDefinition
115 Development.IDE.LSP.LanguageServer
116 Development.IDE.LSP.Protocol
117 Development.IDE.LSP.Server
118 Development.IDE.Spans.Common
119 Development.IDE.Types.Diagnostics
120 Development.IDE.Types.Location
121 Development.IDE.Types.Logger
122 Development.IDE.Types.Options
123 Development.IDE.Plugin
124 Development.IDE.Plugin.Completions
125 Development.IDE.Plugin.CodeAction
126 other-modules:
127 Development.IDE.Core.Compile
128 Development.IDE.Core.Preprocessor
129 Development.IDE.Core.FileExists
130 Development.IDE.GHC.Compat
131 Development.IDE.GHC.CPP
132 Development.IDE.GHC.Orphans
133 Development.IDE.GHC.Warnings
134 Development.IDE.Import.FindImports
135 Development.IDE.LSP.Notifications
136 Development.IDE.LSP.Outline
137 Development.IDE.Spans.AtPoint
138 Development.IDE.Spans.Calculate
139 Development.IDE.Spans.Documentation
140 Development.IDE.Spans.Type
141 Development.IDE.Plugin.CodeAction.PositionIndexed
142 Development.IDE.Plugin.CodeAction.Rules
143 Development.IDE.Plugin.CodeAction.RuleTypes
144 Development.IDE.Plugin.Completions.Logic
145 Development.IDE.Plugin.Completions.Types
146 ghc-options: -Wall -Wno-name-shadowing
148executable ghcide-test-preprocessor
149 default-language: Haskell2010
150 hs-source-dirs: test/preprocessor
151 ghc-options: -Wall -Wno-name-shadowing
152 main-is: Main.hs
153 build-depends:
154 base == 4.*
156executable ghcide
157 if flag(ghc-lib)
158 buildable: False
159 default-language: Haskell2010
160 hs-source-dirs: exe
161 ghc-options:
162 -threaded
163 -Wall
164 -Wno-name-shadowing
165 -- allow user RTS overrides
166 -rtsopts
167 -- disable idle GC
168 -- disable parallel GC
169 -- increase nursery size
170 "-with-rtsopts=-I0 -qg -A128M"
171 main-is: Main.hs
172 build-depends:
173 hslogger,
174 aeson,
175 base == 4.*,
176 binary,
177 base16-bytestring >=0.1.1 && <0.2,
178 bytestring,
179 containers,
180 cryptohash-sha1 >=0.11.100 && <0.12,
181 data-default,
182 deepseq,
183 directory,
184 extra,
185 filepath,
186 ghc-paths,
187 ghc,
188 gitrev,
189 hashable,
190 haskell-lsp,
191 haskell-lsp-types,
192 hie-bios >= 0.4.0 && < 0.5,
193 ghcide,
194 optparse-applicative,
195 shake,
196 text,
197 unordered-containers
198 other-modules:
199 Arguments
200 Paths_ghcide
201 Rules
202 RuleTypes
204 default-extensions:
205 BangPatterns
206 DeriveFunctor
207 DeriveGeneric
208 GeneralizedNewtypeDeriving
209 LambdaCase
210 NamedFieldPuns
211 OverloadedStrings
212 RecordWildCards
213 ScopedTypeVariables
214 StandaloneDeriving
215 TupleSections
216 TypeApplications
217 ViewPatterns
219test-suite ghcide-tests
220 if flag(ghc-lib)
221 buildable: False
222 type: exitcode-stdio-1.0
223 default-language: Haskell2010
224 build-tool-depends:
225 ghcide:ghcide,
226 ghcide:ghcide-test-preprocessor
227 build-depends:
228 aeson,
229 base,
230 bytestring,
231 containers,
232 directory,
233 extra,
234 filepath,
235 --------------------------------------------------------------
236 -- The MIN_GHC_API_VERSION macro relies on MIN_VERSION pragmas
237 -- which require depending on ghc. So the tests need to depend
238 -- on ghc if they need to use MIN_GHC_API_VERSION. Maybe a
239 -- better solution can be found, but this is a quick solution
240 -- which works for now.
241 ghc,
242 --------------------------------------------------------------
243 ghcide,
244 ghc-typelits-knownnat,
245 haddock-library,
246 haskell-lsp,
247 haskell-lsp-types,
248 lens,
249 lsp-test >= 0.8,
250 parser-combinators,
251 QuickCheck,
252 quickcheck-instances,
253 rope-utf16-splay,
254 tasty,
255 tasty-expected-failure,
256 tasty-hunit,
257 tasty-quickcheck,
258 tasty-rerun,
259 text
260 hs-source-dirs: test/cabal test/exe test/src
261 include-dirs: include
262 ghc-options: -threaded -Wall -Wno-name-shadowing
263 main-is: Main.hs
264 other-modules:
265 Development.IDE.Test
266 Development.IDE.Test.Runfiles
267 default-extensions:
268 BangPatterns
269 DeriveFunctor
270 DeriveGeneric
271 GeneralizedNewtypeDeriving
272 LambdaCase
273 NamedFieldPuns
274 OverloadedStrings
275 RecordWildCards
276 ScopedTypeVariables
277 StandaloneDeriving
278 TupleSections
279 TypeApplications
280 ViewPatterns