on package-debug help sign in
ghcide/ghcide.cabal
203 lines 5.5 kB history raw
1cabal-version: 1.20
2build-type: Simple
3category: Development
4name: ghcide
5version: 0.0.3
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
19source-repository head
20 type: git
21 location: https://github.com/digital-asset/ghcide.git
23flag ghc-lib
24 description: build against ghc-lib instead of the ghc package
25 default: False
26 manual: True
28library
29 default-language: Haskell2010
30 build-depends:
31 aeson,
32 async,
33 base == 4.*,
34 binary,
35 bytestring,
36 containers,
37 data-default,
38 deepseq,
39 directory,
40 extra,
41 filepath,
42 hashable,
43 haskell-lsp-types,
44 haskell-lsp >= 0.15,
45 mtl,
46 network-uri,
47 prettyprinter-ansi-terminal,
48 prettyprinter-ansi-terminal,
49 prettyprinter,
50 rope-utf16-splay,
51 safe-exceptions,
52 shake >= 0.17.5,
53 sorted-list,
54 stm,
55 syb,
56 text,
57 time,
58 transformers,
59 unordered-containers,
60 utf8-string,
61 hslogger
62 if flag(ghc-lib)
63 build-depends:
64 ghc-lib >= 8.8,
65 ghc-lib-parser >= 8.8
66 cpp-options: -DGHC_LIB
67 else
68 build-depends:
69 ghc-boot-th,
70 ghc-boot,
71 ghc >= 8.4
72 if !os(windows)
73 build-depends:
74 unix
75 c-sources:
76 cbits/getmodtime.c
78 default-extensions:
79 BangPatterns
80 DeriveFunctor
81 DeriveGeneric
82 GeneralizedNewtypeDeriving
83 LambdaCase
84 NamedFieldPuns
85 OverloadedStrings
86 RecordWildCards
87 ScopedTypeVariables
88 StandaloneDeriving
89 TupleSections
90 TypeApplications
91 ViewPatterns
93 hs-source-dirs:
94 src
95 include-dirs:
96 include
97 exposed-modules:
98 Development.IDE.Core.FileStore
99 Development.IDE.Core.OfInterest
100 Development.IDE.Core.PositionMapping
101 Development.IDE.Core.Rules
102 Development.IDE.Core.RuleTypes
103 Development.IDE.Core.Service
104 Development.IDE.Core.Shake
105 Development.IDE.GHC.Util
106 Development.IDE.Import.DependencyInformation
107 Development.IDE.LSP.LanguageServer
108 Development.IDE.LSP.Protocol
109 Development.IDE.LSP.Server
110 Development.IDE.Types.Diagnostics
111 Development.IDE.Types.Location
112 Development.IDE.Types.Logger
113 Development.IDE.Types.Options
114 other-modules:
115 Development.IDE.Core.Debouncer
116 Development.IDE.Core.Compile
117 Development.IDE.Core.Preprocessor
118 Development.IDE.GHC.Compat
119 Development.IDE.GHC.CPP
120 Development.IDE.GHC.Error
121 Development.IDE.GHC.Orphans
122 Development.IDE.GHC.Warnings
123 Development.IDE.Import.FindImports
124 Development.IDE.LSP.CodeAction
125 Development.IDE.LSP.Definition
126 Development.IDE.LSP.Hover
127 Development.IDE.LSP.Notifications
128 Development.IDE.Spans.AtPoint
129 Development.IDE.Spans.Calculate
130 Development.IDE.Spans.Documentation
131 Development.IDE.Spans.Type
132 ghc-options: -Wall -Wno-name-shadowing
134executable ghcide
135 if flag(ghc-lib)
136 buildable: False
137 default-language: Haskell2010
138 hs-source-dirs: exe
139 ghc-options: -threaded -Wall -Wno-name-shadowing
140 main-is: Main.hs
141 build-depends:
142 hslogger,
143 base == 4.*,
144 containers,
145 data-default,
146 directory,
147 extra,
148 filepath,
149 ghc-paths,
150 ghc,
151 haskell-lsp,
152 hie-bios >= 0.2 && < 0.3,
153 ghcide,
154 optparse-applicative,
155 shake,
156 text
157 other-modules:
158 Arguments
159 Paths_ghcide
161 default-extensions:
162 RecordWildCards
163 TupleSections
164 ViewPatterns
166test-suite ghcide-tests
167 if flag(ghc-lib)
168 buildable: False
169 type: exitcode-stdio-1.0
170 default-language: Haskell2010
171 build-tool-depends:
172 ghcide:ghcide
173 build-depends:
174 base,
175 containers,
176 directory,
177 extra,
178 filepath,
179 --------------------------------------------------------------
180 -- The MIN_GHC_API_VERSION macro relies on MIN_VERSION pragmas
181 -- which require depending on ghc. So the tests need to depend
182 -- on ghc if they need to use MIN_GHC_API_VERSION. Maybe a
183 -- better solution can be found, but this is a quick solution
184 -- which works for now.
185 ghc,
186 --------------------------------------------------------------
187 haskell-lsp-types,
188 lens,
189 lsp-test,
190 parser-combinators,
191 tasty,
192 tasty-hunit,
193 tasty-expected-failure,
194 text
195 hs-source-dirs: test/cabal test/exe test/src
196 include-dirs: include
197 ghc-options: -threaded -Wall -Wno-name-shadowing
198 main-is: Main.hs
199 other-modules:
200 Development.IDE.Test
201 Development.IDE.Test.Runfiles
202 default-extensions:
203 OverloadedStrings