Skip to content

Commit 32f0944

Browse files
committed
hie-compat: Add basic support for ghc-9.0.1
A tiny step towards #297
1 parent c5f5d20 commit 32f0944

File tree

3 files changed

+2411
-3
lines changed

3 files changed

+2411
-3
lines changed

hie-compat/hie-compat.cabal

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ flag ghc-lib
2323
library
2424
default-language: Haskell2010
2525
build-depends:
26-
base < 4.15, array, bytestring, containers, directory, filepath, transformers
26+
base < 4.16, array, bytestring, containers, directory, filepath, transformers
2727
if flag(ghc-lib)
2828
build-depends: ghc-lib
2929
else
3030
build-depends: ghc, ghc-boot
31+
if (impl(ghc >= 9.0) && impl(ghc < 9.1))
32+
-- Used by src-reexport/...
33+
build-depends: ghc-api-compat
34+
ghc-options: -Wall -Wno-name-shadowing
3135

3236
exposed-modules:
3337
Compat.HieAst
@@ -38,8 +42,10 @@ library
3842

3943
if (impl(ghc > 8.5) && impl(ghc < 8.7) && !flag(ghc-lib))
4044
hs-source-dirs: src-ghc86
41-
if (impl(ghc > 8.7) && impl(ghc < 8.10))
45+
if (impl(ghc > 8.7) && impl(ghc < 8.10))
4246
hs-source-dirs: src-ghc88 src-reexport
43-
if (impl(ghc > 8.9) && impl(ghc < 8.11) || flag(ghc-lib))
47+
if (impl(ghc > 8.9) && impl(ghc < 8.11))
4448
hs-source-dirs: src-ghc810 src-reexport
49+
if (impl(ghc >= 9.0) && impl(ghc < 9.1) || flag(ghc-lib))
50+
hs-source-dirs: src-ghc901 src-reexport
4551

0 commit comments

Comments
 (0)