@@ -328,12 +328,9 @@ printReExports extModules = do
328328printExtensionSupport :: [ExtensionModule ] -> IO ()
329329printExtensionSupport extModules = do
330330 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
332332 SI. hPutStrLn h $ " module " ++ moduleName ++ " where"
333333 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"
337334 SI. hPutStrLn h $ " import Control.Monad.IO.Class ( MonadIO(..) )"
338335 SI. hPutStrLn h $ " import Data.Set ( member )"
339336 SI. hPutStrLn h $ " import " ++ moduleNameFor [" GetProcAddress" ] ++ " ( getExtensions, extensions )"
@@ -347,7 +344,7 @@ printExtensionSupport extModules = do
347344 SI. hPutStrLn h $ " "
348345 SI. hPutStrLn h $ " -- | Is the " ++ extensionHyperlink extName ++ " extension supported?"
349346 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"
351348 SI. hPutStrLn h $ " "
352349 SI. hPutStrLn h $ " -- | Is the " ++ extensionHyperlink extName ++ " extension supported?"
353350 SI. hPutStrLn h $ " -- Note that in the presence of multiple contexts with different capabilities,"
0 commit comments