Skip to content

Commit f9339e7

Browse files
JoshMeredithmergify[bot]
authored andcommitted
Revert workaround to filter JavaScriptFFI out on GHC versions where G… (#8979)
* Revert workaround to filter JavaScriptFFI out on GHC versions where GHC issue 11214 is fixed. * Lint * Lint * Update version range to reflect the fix being included in GHC 9.8 --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 8c9a71e) # Conflicts: # Cabal/src/Distribution/Simple/GHC.hs
1 parent b71d7a3 commit f9339e7

File tree

1 file changed

+10
-0
lines changed
  • Cabal/src/Distribution/Simple

1 file changed

+10
-0
lines changed

Cabal/src/Distribution/Simple/GHC.hs

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

186186
ghcInfo <- Internal.getGhcInfo verbosity implInfo ghcProg
187187
let ghcInfoMap = Map.fromList ghcInfo
188+
<<<<<<< HEAD
188189
extensions = -- workaround https://gitlab.haskell.org/ghc/ghc/-/issues/11214
189190
filterExt JavaScriptFFI $
190191
-- see 'filterExtTH' comment below
191192
filterExtTH $ extensions0
193+
=======
194+
filterJS = if ghcVersion < mkVersion [9, 8] then filterExt JavaScriptFFI else id
195+
extensions =
196+
-- workaround https://gitlab.haskell.org/ghc/ghc/-/issues/11214
197+
filterJS $
198+
-- see 'filterExtTH' comment below
199+
filterExtTH $
200+
extensions0
201+
>>>>>>> 8c9a71e67 (Revert workaround to filter JavaScriptFFI out on GHC versions where G (#8979))
192202

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

0 commit comments

Comments
 (0)