Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ParseError = ParseError {}
- data ParseErrorMessage
- = ParseErrorEmpty
- | ParseErrorEmptySetting
- | ParseErrorNoReaders
- | ParseErrorCheckFailed !Bool !String
- | ParseErrorMissingArgument !(Maybe OptDoc)
- | ParseErrorArgumentRead !(Maybe OptDoc) !(NonEmpty String)
- | ParseErrorMissingOption !(Maybe OptDoc)
- | ParseErrorOptionRead !(Maybe OptDoc) !(NonEmpty String)
- | ParseErrorMissingEnvVar !(Maybe EnvDoc)
- | ParseErrorEnvRead !(Maybe EnvDoc) !(NonEmpty String)
- | ParseErrorMissingSwitch !(Maybe OptDoc)
- | ParseErrorMissingConfVal !(Maybe ConfDoc)
- | ParseErrorConfigRead !(Maybe ConfDoc) !String
- | ParseErrorMissingCommand ![String]
- | ParseErrorUnrecognisedCommand !String ![String]
- | ParseErrorAllOrNothing
- | ParseErrorUnrecognised !(NonEmpty String)
- errorIsForgivable :: ParseError -> Bool
- errorMessageIsForgivable :: ParseErrorMessage -> Bool
- eraseErrorSrcLocs :: Functor f => f ParseError -> f ParseError
- eraseErrorSrcLoc :: ParseError -> ParseError
- renderErrors :: NonEmpty ParseError -> [Chunk]
- renderError :: ParseError -> [[Chunk]]
Documentation
data ParseError Source #
Instances
Show ParseError Source # | |
Defined in OptEnvConf.Error showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS # |
data ParseErrorMessage Source #
Instances
Show ParseErrorMessage Source # | |
Defined in OptEnvConf.Error showsPrec :: Int -> ParseErrorMessage -> ShowS # show :: ParseErrorMessage -> String # showList :: [ParseErrorMessage] -> ShowS # |
errorIsForgivable :: ParseError -> Bool Source #
Whether the other side of an Alt
should be tried if we find this error.
eraseErrorSrcLocs :: Functor f => f ParseError -> f ParseError Source #
renderErrors :: NonEmpty ParseError -> [Chunk] Source #
renderError :: ParseError -> [[Chunk]] Source #