Safe Haskell | None |
---|---|
Language | Haskell2010 |
- setEmptyLogger :: DynFlags -> DynFlags
- setDebugLogger :: (String -> IO ()) -> DynFlags -> DynFlags
- setModeSimple :: DynFlags -> DynFlags
- setModeIntelligent :: 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 Source
Fast
Friendly to foreign export
Not friendly to -XTemplateHaskell and -XPatternSynonyms
Uses little memory
setModeSimple :: DynFlags -> DynFlags Source
Slow
Not friendly to foreign export
Friendly to -XTemplateHaskell and -XPatternSynonyms
Uses lots of memory
addCmdOpts :: GhcMonad m => [GHCOption] -> DynFlags -> m DynFlags Source
Parse command line ghc options and add them to the DynFlags
passed
withDynFlags :: GhcMonad m => (DynFlags -> DynFlags) -> m a -> m a Source
withCmdFlags :: GhcMonad m => [GHCOption] -> m a -> m a Source
setNoWarningFlags :: DynFlags -> DynFlags Source
Set DynFlags
equivalent to "-w:".
setAllWarningFlags :: DynFlags -> DynFlags Source
Set DynFlags
equivalent to "-Wall".
setNoMaxRelevantBindings :: DynFlags -> DynFlags Source
Set DynFlags
equivalent to "-fno-max-relevant-bindings".
deferErrors :: DynFlags -> Ghc DynFlags Source