@@ -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 :
@@ -92,19 +87,10 @@ library
9287 opentelemetry >= 0.6.1 ,
9388 heapsize == 0.3. *,
9489 unliftio,
95- unliftio-core
96- if flag(ghc-lib)
97- build-depends :
98- ghc-lib >= 8.8 ,
99- ghc-lib-parser >= 8.8
100- cpp-options : -DGHC_LIB
101- else
102- build-depends :
90+ unliftio-core,
10391 ghc-boot-th,
10492 ghc-boot,
10593 ghc >= 8.6 ,
106- -- These dependencies are used by Development.IDE.Session and are
107- -- Haskell specific. So don't use them when building with -fghc-lib!
10894 ghc-check >= 0.5.0.1 ,
10995 ghc-paths,
11096 cryptohash-sha1 >= 0.11.100 && < 0.12 ,
@@ -141,6 +127,7 @@ library
141127
142128 hs-source-dirs :
143129 src
130+ session-loader
144131 include-dirs :
145132 include
146133 exposed-modules :
@@ -169,6 +156,7 @@ library
169156 Development.IDE.LSP.LanguageServer
170157 Development.IDE.LSP.Outline
171158 Development.IDE.LSP.Server
159+ Development.IDE.Session
172160 Development.IDE.Spans.Common
173161 Development.IDE.Spans.Documentation
174162 Development.IDE.Spans.AtPoint
@@ -191,26 +179,14 @@ library
191179 Development.IDE.Plugin.Test
192180 Development.IDE.Plugin.TypeLenses
193181
194- -- Unfortunately, we cannot use loadSession with ghc-lib since hie-bios uses
195- -- the real GHC library and the types are incompatible. Furthermore, when
196- -- building with ghc-lib we need to make this Haskell agnostic, so no
197- -- hie-bios!
198- -- We also put these modules into a separate hs-source-dirs so we can avoid
199- -- compiling them at all if ghc-lib is not set
200- if !flag(ghc-lib)
201- hs-source-dirs :
202- session-loader
203- exposed-modules :
204- Development.IDE.Session
205- other-modules :
206- Development.IDE.Session.VersionCheck
207182 other-modules :
208183 Development.IDE.Core.FileExists
209184 Development.IDE.GHC.CPP
210185 Development.IDE.GHC.Warnings
211186 Development.IDE.LSP.Notifications
212187 Development.IDE.Plugin.CodeAction.PositionIndexed
213188 Development.IDE.Plugin.Completions.Logic
189+ Development.IDE.Session.VersionCheck
214190 Development.IDE.Types.Action
215191 ghc-options : -Wall -Wno-name-shadowing -Wincomplete-uni-patterns -Wno-unticked-promoted-constructors
216192
@@ -261,8 +237,6 @@ benchmark benchHist
261237 yaml
262238
263239executable ghcide
264- if flag(ghc-lib)
265- buildable : False
266240 default-language : Haskell2010
267241 include-dirs :
268242 include
@@ -322,8 +296,6 @@ executable ghcide
322296 ViewPatterns
323297
324298test-suite ghcide-tests
325- if flag(ghc-lib)
326- buildable : False
327299 type : exitcode-stdio-1.0
328300 default-language : Haskell2010
329301 build-tool-depends :
0 commit comments