@@ -328,12 +328,9 @@ printReExports extModules = do
328
328
printExtensionSupport :: [ExtensionModule ] -> IO ()
329
329
printExtensionSupport extModules = do
330
330
let comment = [" Extension support predicates." ]
331
- startModule [" ExtensionPredicates" ] (Just " {-# LANGUAGE CPP #-} \n {-# OPTIONS_HADDOCK hide #-}" ) comment $ \ moduleName h -> do
331
+ startModule [" ExtensionPredicates" ] (Just " {-# OPTIONS_HADDOCK hide #-}" ) comment $ \ moduleName h -> do
332
332
SI. hPutStrLn h $ " module " ++ moduleName ++ " where"
333
333
SI. hPutStrLn h $ " "
334
- SI. hPutStrLn h " #if !MIN_VERSION_base(4,8,0)"
335
- SI. hPutStrLn h " import Data.Functor( (<$>) )"
336
- SI. hPutStrLn h " #endif"
337
334
SI. hPutStrLn h $ " import Control.Monad.IO.Class ( MonadIO(..) )"
338
335
SI. hPutStrLn h $ " import Data.Set ( member )"
339
336
SI. hPutStrLn h $ " import " ++ moduleNameFor [" GetProcAddress" ] ++ " ( getExtensions, extensions )"
@@ -347,7 +344,7 @@ printExtensionSupport extModules = do
347
344
SI. hPutStrLn h $ " "
348
345
SI. hPutStrLn h $ " -- | Is the " ++ extensionHyperlink extName ++ " extension supported?"
349
346
SI. hPutStrLn h $ predNameMonad ++ " :: MonadIO m => m Bool"
350
- SI. hPutStrLn h $ predNameMonad ++ " = member " ++ show extString ++ " <$> getExtensions"
347
+ SI. hPutStrLn h $ predNameMonad ++ " = member " ++ show extString ++ " `fmap` getExtensions"
351
348
SI. hPutStrLn h $ " "
352
349
SI. hPutStrLn h $ " -- | Is the " ++ extensionHyperlink extName ++ " extension supported?"
353
350
SI. hPutStrLn h $ " -- Note that in the presence of multiple contexts with different capabilities,"
0 commit comments