StaticFlags

ghc-8.0.1: The GHC API

Safe Haskell | None
Language | Haskell2010

StaticFlags

Synopsis

- parseStaticFlags :: [Located String] -> IO ([Located String], [Located String])
- staticFlags :: [String]
- initStaticOpts :: IO ()
- discardStaticFlags :: [String] -> [String]
- opt_PprStyle_Debug :: Bool
- opt_NoDebugOutput :: Bool
- opt_NoStateHack :: Bool
- opt_NoOptCoercion :: Bool
- addOpt :: String -> IO ()
- removeOpt :: String -> IO ()
- v_opt_C_ready :: IORef Bool
- flagsStatic :: [Flag IO]
- flagsStaticNames :: [String]

# Documentation

parseStaticFlags :: [Located String] -> IO ([Located String], [Located String]) Source #

Parses GHC's static flags from a list of command line arguments.

These flags are static in the sense that they can be set only once and they are global, meaning that they affect every instance of GHC running; multiple GHC threads will use the same flags.

This function must be called before any session is started, i.e., before the first call to `withGhc`.

Static flags are more of a hack and are static for more or less historical reasons. In the long run, most static flags should eventually become dynamic flags.

XXX: can we add an auto-generated list of static flags here?

staticFlags :: [String] Source #

initStaticOpts :: IO () Source #

discardStaticFlags :: [String] -> [String] Source #

opt_PprStyle_Debug :: Bool Source #

opt_NoDebugOutput :: Bool Source #

opt_NoStateHack :: Bool Source #

opt_NoOptCoercion :: Bool Source #

addOpt :: String -> IO () Source #

removeOpt :: String -> IO () Source #

v_opt_C_ready :: IORef Bool Source #

flagsStatic :: [Flag IO] Source #

flagsStaticNames :: [String] Source #