diff --git a/ghc-lib-parser.cabal b/ghc-lib-parser.cabal
--- a/ghc-lib-parser.cabal
+++ b/ghc-lib-parser.cabal
@@ -1,8 +1,8 @@
-cabal-version: 2.0
+cabal-version: 3.0
 build-type: Simple
 name: ghc-lib-parser
-version: 9.8.1.20231009
-license: BSD3
+version: 9.8.1.20231121
+license: BSD-3-Clause
 license-file: LICENSE
 category: Development
 author: The GHC Team and Digital Asset
@@ -88,10 +88,10 @@
     else
         build-depends: Win32
     build-depends:
-        base >= 4.17.0.0 && < 4.20,
+        base >= 4.17 && < 4.20,
         ghc-prim > 0.2 && < 0.12,
         containers >= 0.6.2.1 && < 0.7,
-        bytestring >= 0.11.4 && < 0.12,
+        bytestring >= 0.11.4 && < 0.13,
         time >= 1.4 && < 1.13,
         exceptions == 0.10.*,
         parsec,
@@ -144,8 +144,13 @@
         NoImplicitPrelude
         ScopedTypeVariables
         TypeOperators
+    if impl(ghc >= 9.2.2)
+      cmm-sources:
+            libraries/ghc-heap/cbits/HeapPrim.cmm
+    else
+      c-sources:
+            libraries/ghc-heap/cbits/HeapPrim.cmm
     c-sources:
-        libraries/ghc-heap/cbits/HeapPrim.cmm
         compiler/cbits/genSym.c
         compiler/cbits/cutils.c
         compiler/cbits/keepCAFsForGHCi.c
