From 8fee87eac97a538dbe81ff1ab18cff10f2f9fa15 Mon Sep 17 00:00:00 2001
From: Pepe Iborra <pepeiborra@gmail.com>
Date: Sun, 6 Jun 2021 18:37:49 +0100
Subject: [PATCH] Fix build with 8.10.5

---
 ghc-api-compat.cabal | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ghc-api-compat.cabal b/ghc-api-compat.cabal
index dc0f8ac..636f938 100644
--- a/ghc-api-compat.cabal
+++ b/ghc-api-compat.cabal
@@ -22,7 +22,7 @@ library
       ghc >= 8.6, base < 5.0
    default-language:    Haskell2010
 
-   if impl(ghc >= 9.0)
+   if impl(ghc >= 8.10.5)
       reexported-modules:
            GHC.Platform.AArch64           as CodeGen.Platform.ARM64
 
@@ -30,7 +30,9 @@ library
       reexported-modules:
            GHC.Hs.Types                   as HsTypes
          , GHC.Hs.PlaceHolder             as PlaceHolder
-         , GHC.Platform.ARM64             as CodeGen.Platform.ARM64
+   if impl(ghc >= 8.10) && impl(ghc < 8.10.5)
+      reexported-modules:
+           GHC.Platform.ARM64             as CodeGen.Platform.ARM64
 
    if impl(ghc >= 8.10)
       reexported-modules:
-- 
GitLab