@@ -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 :
@@ -168,6 +155,7 @@ library
168155 Development.IDE.LSP.LanguageServer
169156 Development.IDE.LSP.Outline
170157 Development.IDE.LSP.Server
158+ Development.IDE.Session
171159 Development.IDE.Spans.Common
172160 Development.IDE.Spans.Documentation
173161 Development.IDE.Spans.AtPoint
@@ -190,19 +178,6 @@ library
190178 Development.IDE.Plugin.Test
191179 Development.IDE.Plugin.TypeLenses
192180
193- -- Unfortunately, we cannot use loadSession with ghc-lib since hie-bios uses
194- -- the real GHC library and the types are incompatible. Furthermore, when
195- -- building with ghc-lib we need to make this Haskell agnostic, so no
196- -- hie-bios!
197- -- We also put these modules into a separate hs-source-dirs so we can avoid
198- -- compiling them at all if ghc-lib is not set
199- if !flag(ghc-lib)
200- hs-source-dirs :
201- session-loader
202- exposed-modules :
203- Development.IDE.Session
204- other-modules :
205- Development.IDE.Session.VersionCheck
206181 other-modules :
207182 Development.IDE.Core.FileExists
208183 Development.IDE.GHC.CPP
@@ -261,8 +236,6 @@ benchmark benchHist
261236 yaml
262237
263238executable ghcide
264- if flag(ghc-lib)
265- buildable : False
266239 default-language : Haskell2010
267240 include-dirs :
268241 include
@@ -322,8 +295,6 @@ executable ghcide
322295 ViewPatterns
323296
324297test-suite ghcide-tests
325- if flag(ghc-lib)
326- buildable : False
327298 type : exitcode-stdio-1.0
328299 default-language : Haskell2010
329300 build-tool-depends :
0 commit comments