| Copyright | Copyright 2017 Awake Security |
|---|---|
| License | Apache-2.0 |
| Maintainer | opensource@awakesecurity.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.Ninja.Errors.Compile
Contents
Description
Errors thrown during Ninja compilation.
Since: 0.1.0
- data CompileError
- throwCompileError :: MonadError CompileError m => CompileError -> m a
- throwGenericCompileError :: MonadError CompileError m => Text -> m a
- data CompileMetaError
- throwCompileMetaError :: MonadError CompileError m => CompileMetaError -> m a
- throwGenericCompileMetaError :: MonadError CompileError m => Text -> m a
- throwVersionParseFailure :: MonadError CompileError m => ParsingError -> m a
- data CompilePhonyError = GenericCompilePhonyError !Text
- throwCompilePhonyError :: MonadError CompileError m => CompilePhonyError -> m a
- throwGenericCompilePhonyError :: MonadError CompileError m => Text -> m a
- data CompileDefaultError = GenericCompileDefaultError !Text
- throwCompileDefaultError :: MonadError CompileError m => CompileDefaultError -> m a
- throwGenericCompileDefaultError :: MonadError CompileError m => Text -> m a
- data CompileBuildError
- throwCompileBuildError :: MonadError CompileError m => CompileBuildError -> m a
- throwGenericCompileBuildError :: MonadError CompileError m => Text -> m a
- throwBuildRuleNotFound :: MonadError CompileError m => Text -> m a
- data CompileRuleError
- throwCompileRuleError :: MonadError CompileError m => CompileRuleError -> m a
- throwGenericCompileRuleError :: MonadError CompileError m => Text -> m a
- throwRuleLookupFailure :: MonadError CompileError m => Text -> m a
- throwUnknownDeps :: MonadError CompileError m => Text -> m a
- throwUnexpectedMSVCPrefix :: MonadError CompileError m => Text -> m a
- data CompilePoolError
- throwCompilePoolError :: MonadError CompileError m => CompilePoolError -> m a
- throwGenericCompilePoolError :: MonadError CompileError m => Text -> m a
- throwInvalidPoolDepth :: MonadError CompileError m => Int -> m a
- throwEmptyPoolName :: MonadError CompileError m => m a
CompileError
data CompileError Source #
The type of errors encountered during compilation.
Since: 0.1.0
Constructors
| GenericCompileError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
| CompileMetaError !CompileMetaError | Errors encountered while compiling a Since: 0.1.0 |
| CompileBuildError !CompileBuildError | Errors encountered while compiling a Since: 0.1.0 |
| CompileRuleError !CompileRuleError | Errors encountered while compiling a Since: 0.1.0 |
| CompilePhonyError !CompilePhonyError | Errors encountered while compiling the phony Since: 0.1.0 |
| CompileDefaultError !CompileDefaultError | Errors encountered while compiling the default target Since: 0.1.0 |
| CompilePoolError !CompilePoolError | Errors encountered while compiling a Since: 0.1.0 |
Instances
| Eq CompileError Source # | |
| Show CompileError Source # | |
| Generic CompileError Source # | |
| ToJSON CompileError Source # | Converts to Since: 0.1.0 |
| Exception CompileError Source # | Default instance. Since: 0.1.0 |
| type Rep CompileError Source # | |
throwCompileError :: MonadError CompileError m => CompileError -> m a Source #
Throw a CompileError.
Since: 0.1.0
throwGenericCompileError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompileError.
Since: 0.1.0
CompileMetaError
data CompileMetaError Source #
The type of errors encountered while compiling Ninja metadata.
Since: 0.1.0
Constructors
| GenericCompileMetaError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
| VersionParseFailure !ParsingError | Failed to parse Since: 0.1.0 |
Instances
| Eq CompileMetaError Source # | |
| Show CompileMetaError Source # | |
| Generic CompileMetaError Source # | |
| ToJSON CompileMetaError Source # | Converts to Since: 0.1.0 |
| type Rep CompileMetaError Source # | |
throwCompileMetaError :: MonadError CompileError m => CompileMetaError -> m a Source #
Throw a CompileMetaError.
Since: 0.1.0
throwGenericCompileMetaError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompileMetaError.
Since: 0.1.0
throwVersionParseFailure :: MonadError CompileError m => ParsingError -> m a Source #
Throw a VersionParseFailure error.
Since: 0.1.0
CompilePhonyError
data CompilePhonyError Source #
The type of errors encountered while compiling a Ninja phony build.
Since: 0.1.0
Constructors
| GenericCompilePhonyError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
Instances
| Eq CompilePhonyError Source # | |
| Show CompilePhonyError Source # | |
| Generic CompilePhonyError Source # | |
| ToJSON CompilePhonyError Source # | Converts to Since: 0.1.0 |
| type Rep CompilePhonyError Source # | |
throwCompilePhonyError :: MonadError CompileError m => CompilePhonyError -> m a Source #
Throw a CompilePhonyError.
Since: 0.1.0
throwGenericCompilePhonyError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompilePhonyError.
Since: 0.1.0
CompileDefaultError
data CompileDefaultError Source #
The type of errors encountered while compiling a Ninja default statement.
Since: 0.1.0
Constructors
| GenericCompileDefaultError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
Instances
| Eq CompileDefaultError Source # | |
| Show CompileDefaultError Source # | |
| Generic CompileDefaultError Source # | |
| ToJSON CompileDefaultError Source # | Converts to Since: 0.1.0 |
| type Rep CompileDefaultError Source # | |
throwCompileDefaultError :: MonadError CompileError m => CompileDefaultError -> m a Source #
Throw a CompileDefaultError.
Since: 0.1.0
throwGenericCompileDefaultError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompileDefaultError.
Since: 0.1.0
CompileBuildError
data CompileBuildError Source #
The type of errors encountered while compiling a Ninja build statement.
Since: 0.1.0
Constructors
| GenericCompileBuildError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
| BuildRuleNotFound !Text | Rule not found: text Since: 0.1.0 |
Instances
| Eq CompileBuildError Source # | |
| Show CompileBuildError Source # | |
| Generic CompileBuildError Source # | |
| ToJSON CompileBuildError Source # | Converts to Since: 0.1.0 |
| type Rep CompileBuildError Source # | |
throwCompileBuildError :: MonadError CompileError m => CompileBuildError -> m a Source #
Throw a CompileBuildError.
Since: 0.1.0
throwGenericCompileBuildError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompileBuildError.
Since: 0.1.0
throwBuildRuleNotFound :: MonadError CompileError m => Text -> m a Source #
Throw a BuildRuleNotFound error.
Since: 0.1.0
CompileRuleError
data CompileRuleError Source #
The type of errors encountered while compiling a Ninja rule statement.
Since: 0.1.0
Constructors
| GenericCompileRuleError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
| RuleLookupFailure !Text | Lookup failed on rule variable: text Since: 0.1.0 |
| UnknownDepsValue !Text | Unknown Since: 0.1.0 |
| UnexpectedMSVCPrefix !Text | Unexpected Since: 0.1.0 |
Instances
| Eq CompileRuleError Source # | |
| Show CompileRuleError Source # | |
| Generic CompileRuleError Source # | |
| ToJSON CompileRuleError Source # | Converts to Since: 0.1.0 |
| type Rep CompileRuleError Source # | |
throwCompileRuleError :: MonadError CompileError m => CompileRuleError -> m a Source #
Throw a CompileRuleError.
Since: 0.1.0
throwGenericCompileRuleError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompileRuleError.
Since: 0.1.0
throwRuleLookupFailure :: MonadError CompileError m => Text -> m a Source #
Throw a RuleLookupFailure error.
Since: 0.1.0
throwUnknownDeps :: MonadError CompileError m => Text -> m a Source #
Throw an UnknownDeps error.
Since: 0.1.0
throwUnexpectedMSVCPrefix :: MonadError CompileError m => Text -> m a Source #
Throw an UnexpectedMSVCPrefix error.
Since: 0.1.0
CompilePoolError
data CompilePoolError Source #
The type of errors encountered while compiling a Ninja pool statement.
Since: 0.1.0
Constructors
| GenericCompilePoolError !Text | Generic catch-all error constructor. Avoid using this. Since: 0.1.0 |
| InvalidPoolDepth !Int | Invalid pool depth for console: int Since: 0.1.0 |
| EmptyPoolName | Pool name is an empty string Since: 0.1.0 |
Instances
| Eq CompilePoolError Source # | |
| Show CompilePoolError Source # | |
| Generic CompilePoolError Source # | |
| ToJSON CompilePoolError Source # | Converts to Since: 0.1.0 |
| type Rep CompilePoolError Source # | |
throwCompilePoolError :: MonadError CompileError m => CompilePoolError -> m a Source #
Throw a CompilePoolError.
Since: 0.1.0
throwGenericCompilePoolError :: MonadError CompileError m => Text -> m a Source #
Throw a generic catch-all CompilePoolError.
Since: 0.1.0
throwInvalidPoolDepth :: MonadError CompileError m => Int -> m a Source #
Throw an InvalidPoolDepth error.
Since: 0.1.0
throwEmptyPoolName :: MonadError CompileError m => m a Source #
Throw an EmptyPoolName error.
Since: 0.1.0