@@ -27,11 +27,6 @@ source-repository head
2727 type : git
2828 location : https://github.com/haskell/ghcide.git
2929
30- flag ghc-lib
31- description : build against ghc-lib instead of the ghc package
32- default : False
33- manual : True
34-
3530library
3631 default-language : Haskell2010
3732 build-depends :
@@ -88,19 +83,10 @@ library
8883 vector,
8984 bytestring-encoding,
9085 opentelemetry >= 0.6.1 ,
91- heapsize == 0.3. *
92- if flag(ghc-lib)
93- build-depends :
94- ghc-lib >= 8.8 ,
95- ghc-lib-parser >= 8.8
96- cpp-options : -DGHC_LIB
97- else
98- build-depends :
86+ heapsize == 0.3. *,
9987 ghc-boot-th,
10088 ghc-boot,
10189 ghc >= 8.6 ,
102- -- These dependencies are used by Development.IDE.Session and are
103- -- Haskell specific. So don't use them when building with -fghc-lib!
10490 ghc-check >= 0.5.0.1 ,
10591 ghc-paths,
10692 cryptohash-sha1 >= 0.11.100 && < 0.12 ,
@@ -134,6 +120,7 @@ library
134120
135121 hs-source-dirs :
136122 src
123+ session-loader
137124 include-dirs :
138125 include
139126 exposed-modules :
@@ -162,6 +149,7 @@ library
162149 Development.IDE.LSP.Outline
163150 Development.IDE.LSP.Protocol
164151 Development.IDE.LSP.Server
152+ Development.IDE.Session
165153 Development.IDE.Spans.Common
166154 Development.IDE.Spans.Documentation
167155 Development.IDE.Spans.AtPoint
@@ -184,19 +172,6 @@ library
184172 Development.IDE.Plugin.Test
185173 Development.IDE.Plugin.TypeLenses
186174
187- -- Unfortunately, we cannot use loadSession with ghc-lib since hie-bios uses
188- -- the real GHC library and the types are incompatible. Furthermore, when
189- -- building with ghc-lib we need to make this Haskell agnostic, so no
190- -- hie-bios!
191- -- We also put these modules into a separate hs-source-dirs so we can avoid
192- -- compiling them at all if ghc-lib is not set
193- if !flag(ghc-lib)
194- hs-source-dirs :
195- session-loader
196- exposed-modules :
197- Development.IDE.Session
198- other-modules :
199- Development.IDE.Session.VersionCheck
200175 other-modules :
201176 Development.IDE.Core.FileExists
202177 Development.IDE.GHC.CPP
@@ -206,6 +181,7 @@ library
206181 Development.IDE.Plugin.CodeAction.PositionIndexed
207182 Development.IDE.Plugin.Completions.Logic
208183 Development.IDE.Plugin.HLS.Formatter
184+ Development.IDE.Session.VersionCheck
209185 Development.IDE.Types.Action
210186 ghc-options : -Wall -Wno-name-shadowing -Wincomplete-uni-patterns
211187
@@ -256,8 +232,6 @@ benchmark benchHist
256232 yaml
257233
258234executable ghcide
259- if flag(ghc-lib)
260- buildable : False
261235 default-language : Haskell2010
262236 include-dirs :
263237 include
@@ -317,8 +291,6 @@ executable ghcide
317291 ViewPatterns
318292
319293test-suite ghcide-tests
320- if flag(ghc-lib)
321- buildable : False
322294 type : exitcode-stdio-1.0
323295 default-language : Haskell2010
324296 build-tool-depends :
0 commit comments