From 32d62d1ed71748c907ebb60ba2ecc86e6bb5eefc Mon Sep 17 00:00:00 2001
From: Sylvain Henry <sylvain@haskus.fr>
Date: Thu, 4 Feb 2021 20:14:50 +0100
Subject: [PATCH] Fix for ghc-9.0

---
 ghc-api-compat.cabal | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ghc-api-compat.cabal b/ghc-api-compat.cabal
index fc8bd93..dbdfe11 100644
--- a/ghc-api-compat.cabal
+++ b/ghc-api-compat.cabal
@@ -22,10 +22,15 @@ library
       ghc >= 8.6, base
    default-language:    Haskell2010
 
+   if impl(ghc >= 9.0)
+      reexported-modules:
+           GHC.Platform.AArch64           as CodeGen.Platform.ARM64
+
    if impl(ghc >= 8.10) && impl(ghc < 8.11)
       reexported-modules:
            GHC.Hs.Types                   as HsTypes
          , GHC.Hs.PlaceHolder             as PlaceHolder
+         , GHC.Platform.ARM64             as CodeGen.Platform.ARM64
 
    if impl(ghc >= 8.10)
       reexported-modules:
@@ -44,7 +49,6 @@ library
          , GHC.Hs.Pat                     as HsPat
          , GHC.Hs.Utils                   as HsUtils
 
-         , GHC.Platform.ARM64             as CodeGen.Platform.ARM64
          , GHC.Platform.ARM               as CodeGen.Platform.ARM
          , GHC.Platform.NoRegs            as CodeGen.Platform.NoRegs
          , GHC.Platform.PPC               as CodeGen.Platform.PPC
-- 
GitLab