Skip to content

Commit b3a8632

Browse files
authored
Merge pull request #9029 from haskell/mergify/bp/3.10/pr-8979
Revert workaround to filter JavaScriptFFI out on GHC versions where G… (backport #8979)
2 parents 2edb879 + bbed869 commit b3a8632

File tree

1 file changed

+7
-4
lines changed
  • Cabal/src/Distribution/Simple

1 file changed

+7
-4
lines changed

Cabal/src/Distribution/Simple/GHC.hs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,13 @@ configure verbosity hcPath hcPkgPath conf0 = do
185185

186186
ghcInfo <- Internal.getGhcInfo verbosity implInfo ghcProg
187187
let ghcInfoMap = Map.fromList ghcInfo
188-
extensions = -- workaround https://gitlab.haskell.org/ghc/ghc/-/issues/11214
189-
filterExt JavaScriptFFI $
190-
-- see 'filterExtTH' comment below
191-
filterExtTH $ extensions0
188+
filterJS = if ghcVersion < mkVersion [9, 8] then filterExt JavaScriptFFI else id
189+
extensions =
190+
-- workaround https://gitlab.haskell.org/ghc/ghc/-/issues/11214
191+
filterJS $
192+
-- see 'filterExtTH' comment below
193+
filterExtTH $
194+
extensions0
192195

193196
-- starting with GHC 8.0, `TemplateHaskell` will be omitted from
194197
-- `--supported-extensions` when it's not available.

0 commit comments

Comments
 (0)