License | MPL-2.0 |
---|---|
Maintainer | alex@fldcr.com |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data RunError
- = Group Location (Set RunError)
- | MatchError Text
- | ParseError Key String
- | RequiredSetting Key
- | TooFewElements
- | TooManyElements
- | UnexpectedProperties (HashSet Key) (HashSet Key)
- | UnexpectedSettings (HashSet Key) (HashSet Key)
- newtype RunErrors = RunErrors (Set RunError)
- data RunT f t a
- type Run = RunT Identity
- run :: i -> Run i a -> Either RunErrors a
- runT :: i -> RunT f i a -> Either RunErrors (f a)
Documentation
Errors that may be returned from the interpreter.
Group Location (Set RunError) | Groups a set of errors with a location for more helpful error messages. |
MatchError Text | Expected a different type. Thrown on failed matches of sum types. |
ParseError Key String | The provided parser failed to parse a setting. |
RequiredSetting Key | A setting was required, but not found on a node. |
TooFewElements | Expected more elements when matching sequentially. |
TooManyElements | Expected fewer elements when matching sequentially. |
UnexpectedProperties (HashSet Key) (HashSet Key) | A property was found on a node, but not mentioned in its specification. |
UnexpectedSettings (HashSet Key) (HashSet Key) | A setting was found on a node, but not mentioned in its specification. |
Instances
Eq RunError Source # | |
Ord RunError Source # | |
Defined in Prosidy.Compile.Run | |
Show RunError Source # | |
Exception RunError Source # | |
Defined in Prosidy.Compile.Run toException :: RunError -> SomeException # fromException :: SomeException -> Maybe RunError # displayException :: RunError -> String # | |
Pretty RunError Source # | |
Defined in Prosidy.Compile.Run |
A newtype wrapper over a set of RunError
s.
This is defined to allow an instances of Exception
and Pretty
for error
sets.
Instances
Eq RunErrors Source # | |
Ord RunErrors Source # | |
Defined in Prosidy.Compile.Run | |
Show RunErrors Source # | |
Semigroup RunErrors Source # | |
Monoid RunErrors Source # | |
Exception RunErrors Source # | |
Defined in Prosidy.Compile.Run toException :: RunErrors -> SomeException # fromException :: SomeException -> Maybe RunErrors # displayException :: RunErrors -> String # | |
Pretty RunErrors Source # | |
Defined in Prosidy.Compile.Run |
An interpreter over Rules
.