File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Cabal/src/Distribution/Simple Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,13 @@ configure verbosity hcPath hcPkgPath conf0 = do
185
185
186
186
ghcInfo <- Internal. getGhcInfo verbosity implInfo ghcProg
187
187
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
192
195
193
196
-- starting with GHC 8.0, `TemplateHaskell` will be omitted from
194
197
-- `--supported-extensions` when it's not available.
You can’t perform that action at this time.
0 commit comments