Language.Haskell.GhcMod.DynFlags

ghc-mod-5.5.0.0: Happy Haskell Programming

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
- setNoMaxRelevantBindings :: DynFlags -> DynFlags
- deferErrors :: DynFlags -> Ghc DynFlags

# 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

setNoMaxRelevantBindings :: DynFlags -> DynFlags

Set `DynFlags` equivalent to "-fno-max-relevant-bindings".

deferErrors :: DynFlags -> Ghc DynFlags