Skip to content

Commit 7faaca4

Browse files
committed
Compatibility with GHC 9.12
1 parent d7c995c commit 7faaca4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ghc-dump-core/GhcDump/Convert.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ cvtLit l =
310310
Literal.LitNullAddr -> Ast.MachNullAddr
311311
Literal.LitFloat x -> Ast.MachFloat x
312312
Literal.LitDouble x -> Ast.MachDouble x
313+
#if MIN_VERSION_ghc(9,12,0)
314+
Literal.LitLabel x _ -> Ast.MachLabel $ fastStringToText x
315+
#else
313316
Literal.LitLabel x _ _ -> Ast.MachLabel $ fastStringToText x
317+
#endif
314318
Literal.LitRubbish{} -> Ast.LitRubbish
315319
#else
316320
Literal.MachChar x -> Ast.MachChar x

ghc-dump-core/ghc-dump-core.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ tested-with: GHC==7.10.3,
3939
GHC==9.4.8,
4040
GHC==9.6.6,
4141
GHC==9.8.4,
42-
GHC==9.10.1
42+
GHC==9.10.1,
43+
GHC==9.12.1
4344
build-type: Simple
4445

4546
source-repository head
@@ -50,12 +51,12 @@ library
5051
exposed-modules: GhcDump.Convert, GhcDump.Ast, GhcDump.Plugin
5152
ghc-options: -Wall
5253
other-extensions: GeneralizedNewtypeDeriving
53-
build-depends: base >=4.8 && <4.21,
54+
build-depends: base >=4.8 && <4.22,
5455
bytestring >= 0.10,
5556
text >=1.2 && <2.2,
5657
filepath >= 1.4,
5758
serialise >= 0.2 && <0.3,
58-
ghc >= 7.10 && < 9.11,
59+
ghc >= 7.10 && < 9.13,
5960
directory < 1.4,
6061
zstd >= 0.1 && < 0.2
6162
default-language: Haskell2010

0 commit comments

Comments
 (0)