Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- warningsToMessages :: DynFlags -> WarningMessages -> (WarningMessages, ErrorMessages)
- printOrThrowWarnings :: Logger -> DynFlags -> Bag WarnMsg -> IO ()
- printBagOfErrors :: RenderableDiagnostic a => Logger -> DynFlags -> Bag (MsgEnvelope a) -> IO ()
- isWarnMsgFatal :: DynFlags -> WarnMsg -> Maybe (Maybe WarningFlag)
- handleFlagWarnings :: Logger -> DynFlags -> [Warn] -> IO ()
Documentation
warningsToMessages :: DynFlags -> WarningMessages -> (WarningMessages, ErrorMessages) Source #
Converts a list of WarningMessages
into a tuple where the second element contains only
error, i.e. warnings that are considered fatal by GHC based on the input DynFlags
.
printOrThrowWarnings :: Logger -> DynFlags -> Bag WarnMsg -> IO () Source #
Given a bag of warnings, turn them into an exception if -Werror is enabled, or print them out otherwise.
printBagOfErrors :: RenderableDiagnostic a => Logger -> DynFlags -> Bag (MsgEnvelope a) -> IO () Source #
isWarnMsgFatal :: DynFlags -> WarnMsg -> Maybe (Maybe WarningFlag) Source #
Checks if given WarnMsg
is a fatal warning.