| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Mikan.TypeChecking.Unquote.Errors
Description
Diagnostics related to execution of metaprograms.
Synopsis
- data UnquoteError
- = BlockedOnMeta TCState Blocker
- | CannotDeclareHiddenFunction QName
- | CommitAfterDef
- | ConInsteadOfDef QName String String
- | DefineDataNotData QName
- | DefInsteadOfCon QName String String
- | EscapingVariable (Closure Term)
- | FreshNameWhileElaborating
- | MissingDeclaration QName
- | MissingDefinition QName
- | NakedUnquote
- | NonCanonical String Term
- | PatLamWithoutClauses Term
- | StaleMeta TopLevelModuleName MetaId
- | TooManyParameters Nat Expr
- | UnboundName QName
- data ExecError
Documentation
data UnquoteError Source #
An error raised during execution of a metaprogram.
Constructors
| BlockedOnMeta TCState Blocker | |
| CannotDeclareHiddenFunction QName | |
| CommitAfterDef | |
| ConInsteadOfDef QName String String | |
| DefineDataNotData QName | |
| DefInsteadOfCon QName String String | |
| EscapingVariable (Closure Term) | Given meta-program produces unbound variable under |
| FreshNameWhileElaborating | |
| MissingDeclaration QName | |
| MissingDefinition QName | |
| NakedUnquote | |
| NonCanonical String Term | |
| PatLamWithoutClauses Term | |
| StaleMeta TopLevelModuleName MetaId | Attempt to unquote a serialized meta. |
| TooManyParameters Nat Expr | Attempt to shave of |
| UnboundName QName |
Instances
Error when trying to call an external executable during reflection.
Constructors
| ExeNotTrusted ExeName ExeMap | The given executable is not listed as trusted. |
| ExeNotFound ExeName FilePath | The given executable could not be found under the given path. |
| ExeNotExecutable ExeName FilePath | The given file path does not have executable permissions. |
Instances
| Diagnostic ExecError Source # | |||||
Defined in Mikan.TypeChecking.Unquote.Errors Methods diagnosticReason :: ExecError -> DiagnosticReason Source # diagnosticString :: ExecError -> String Source # toSomeDiagnostic :: ExecError -> SomeDiagnostic Source # fromSomeDiagnostic :: SomeDiagnostic -> Maybe ExecError Source # | |||||
| PrettyTCM ExecError Source # | |||||
Defined in Mikan.TypeChecking.Unquote.Errors | |||||
| NFData ExecError Source # | |||||
Defined in Mikan.TypeChecking.Unquote.Errors | |||||
| Generic ExecError Source # | |||||
Defined in Mikan.TypeChecking.Unquote.Errors Associated Types
| |||||
| Show ExecError Source # | |||||
| type Rep ExecError Source # | |||||
Defined in Mikan.TypeChecking.Unquote.Errors type Rep ExecError = D1 ('MetaData "ExecError" "Mikan.TypeChecking.Unquote.Errors" "Mikan-2.9.0-CZbYRMbHmng2A9zjJ31VFu" 'False) (C1 ('MetaCons "ExeNotTrusted" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExeMap)) :+: (C1 ('MetaCons "ExeNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :+: C1 ('MetaCons "ExeNotExecutable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExeName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))) | |||||