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