Copyright | Copyright 2017 Awake Security |
---|---|
License | Apache-2.0 |
Maintainer | opensource@awakesecurity.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Errors thrown during Ninja parsing.
Since: 0.1.0
- data ParseError
- throwParseError :: MonadError ParseError m => ParseError -> m a
- throwGenericParseError :: MonadError ParseError m => Text -> m a
- throwLexBindingFailure :: MonadError ParseError m => Text -> m a
- throwLexExpectedColon :: MonadError ParseError m => m a
- throwLexUnexpectedDollar :: MonadError ParseError m => m a
- throwLexUnexpectedSeparator :: MonadError ParseError m => Char -> m a
- throwLexParsecError :: MonadError ParseError m => ParseError Char Dec -> m a
- throwParseBadDepthField :: MonadError ParseError m => Text -> m a
- throwParseUnexpectedBinding :: MonadError ParseError m => Text -> m a
ParseError
data ParseError Source #
The type of errors encountered during parsing.
Since: 0.1.0
GenericParseError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
LexBindingFailure !Text | Lexer failed at binding: text Since: 0.1.0 |
LexExpectedColon | Expected a colon Since: 0.1.0 |
LexUnexpectedDollar | Unexpected $ followed by unexpected stuff Since: 0.1.0 |
LexUnexpectedSeparator Char | Lexer expected a separator character but found something else Since: 0.1.0 |
LexParsecError !(ParseError Char Dec) | Any other lexer error. Since: 0.1.0 |
ParseBadDepthField !Text | Could not parse depth field in pool, got: text Since: 0.1.0 |
ParseUnexpectedBinding !Text | Unexpected binding defining text Since: 0.1.0 |
Eq ParseError Source # | |
Show ParseError Source # | |
Generic ParseError Source # | |
ToJSON ParseError Source # | Converts to Since: 0.1.0 |
Exception ParseError Source # | Default instance. Since: 0.1.0 |
type Rep ParseError Source # | |
throwParseError :: MonadError ParseError m => ParseError -> m a Source #
Throw a ParseError
.
Since: 0.1.0
throwGenericParseError :: MonadError ParseError m => Text -> m a Source #
Throw a generic catch-all ParseError
.
Since: 0.1.0
throwLexBindingFailure :: MonadError ParseError m => Text -> m a Source #
Throw a LexBindingFailure
error.
Since: 0.1.0
throwLexExpectedColon :: MonadError ParseError m => m a Source #
Throw a LexExpectedColon
error.
Since: 0.1.0
throwLexUnexpectedDollar :: MonadError ParseError m => m a Source #
Throw a LexUnexpectedColon
error.
Since: 0.1.0
throwLexUnexpectedSeparator :: MonadError ParseError m => Char -> m a Source #
Throw a LexUnexpectedSeparator
error.
Since: 0.1.0
throwLexParsecError :: MonadError ParseError m => ParseError Char Dec -> m a Source #
Throw a LexParsecError
error.
Since: 0.1.0
throwParseBadDepthField :: MonadError ParseError m => Text -> m a Source #
Throw a ParseBadDepthField
error.
Since: 0.1.0
throwParseUnexpectedBinding :: MonadError ParseError m => Text -> m a Source #
Throw a ParseUnexpectedBinding
error.
Since: 0.1.0