Language.Haskell.GhcMod.DynFlags

ghc-mod-5.8.0.0: Happy Haskell Hacking

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhcMod.DynFlags

Contents

- Fast
- Friendly to foreign export
- Not friendly to -XTemplateHaskell and -XPatternSynonyms
- Uses little memory
- Slow
- Not friendly to foreign export
- Friendly to -XTemplateHaskell and -XPatternSynonyms
- Uses lots of memory

Synopsis

- setEmptyLogger :: DynFlags -> DynFlags
- setDebugLogger :: (String -> IO ()) -> DynFlags -> DynFlags
- setHscNothing :: DynFlags -> DynFlags
- setHscInterpreted :: DynFlags -> DynFlags
- addCmdOpts :: GhcMonad m => [GHCOption] -> DynFlags -> m DynFlags
- withDynFlags :: GhcMonad m => (DynFlags -> DynFlags) -> m a -> m a
- withCmdFlags :: GhcMonad m => [GHCOption] -> m a -> m a
- setNoWarningFlags :: DynFlags -> DynFlags
- setAllWarningFlags :: DynFlags -> DynFlags
- allWarningFlags :: WarnFlags
- deferErrors :: Monad m => DynFlags -> m DynFlags
- eqDynFlags :: DynFlags -> DynFlags -> Bool

# Documentation

setEmptyLogger :: DynFlags -> DynFlags #

setDebugLogger :: (String -> IO ()) -> DynFlags -> DynFlags #

# Fast

# Friendly to foreign export

# Not friendly to -XTemplateHaskell and -XPatternSynonyms

# Uses little memory

setHscNothing :: DynFlags -> DynFlags #

# Slow

# Not friendly to foreign export

# Friendly to -XTemplateHaskell and -XPatternSynonyms

# Uses lots of memory

setHscInterpreted :: DynFlags -> DynFlags #

addCmdOpts :: GhcMonad m => [GHCOption] -> DynFlags -> m DynFlags #

Parse command line ghc options and add them to the `DynFlags` passed

withDynFlags :: GhcMonad m => (DynFlags -> DynFlags) -> m a -> m a #

withCmdFlags :: GhcMonad m => [GHCOption] -> m a -> m a #

setNoWarningFlags :: DynFlags -> DynFlags #

Set `DynFlags` equivalent to "-w:".

setAllWarningFlags :: DynFlags -> DynFlags #

Set `DynFlags` equivalent to "-Wall".

allWarningFlags :: WarnFlags #

deferErrors :: Monad m => DynFlags -> m DynFlags #

eqDynFlags :: DynFlags -> DynFlags -> Bool #