Safe Haskell | None |
---|---|
Language | Haskell2010 |
Errors. Not re-exported by Language.PTS.
Synopsis
- class Monad m => MonadErr m where
- data Err
- = SomeErr String
- | VariableNotInScope (PrettyM Doc) [PrettyM Doc]
- | TypeMismatch (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | NonEqual (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | SortMismatch (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | LambdaNotPi (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | PairNotSigma (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | ReflNotEquality (PrettyM Doc) [PrettyM Doc]
- | NotAPair (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | NoRule (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | NotAFunction (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc]
- | SortWithoutAxiom (PrettyM Doc) [PrettyM Doc]
- | QuarkNotInHadron Sym (Set Sym) [PrettyM Doc]
- | QuarkNotHadron Sym (PrettyM Doc) [PrettyM Doc]
- | ApplyPanic String (PrettyM Doc)
- | OccursFailure (PrettyM Doc) (PrettyM Doc)
- | MismatchFailure (PrettyM Doc) (PrettyM Doc)
- class AsErr e where
Documentation
class Monad m => MonadErr m where Source #
A MonadError Err
.
Various errors occuring during type-checking of terms.
SomeErr String | untyped error. Avoid. |
VariableNotInScope (PrettyM Doc) [PrettyM Doc] | variable not in the context provided |
TypeMismatch (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | type mismatch in function application |
NonEqual (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | Refl annotated with mismatching values |
SortMismatch (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | type mismatch in function application |
LambdaNotPi (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | Lambda is (annotated with) not a Pi-type |
PairNotSigma (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | Pair is (annotated with) not a Sigma-type |
ReflNotEquality (PrettyM Doc) [PrettyM Doc] | Refl is (annotated with) not an Equality-type |
NotAPair (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | Match on not a pair |
NoRule (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | invalid function space |
NotAFunction (PrettyM Doc) (PrettyM Doc) (PrettyM Doc) [PrettyM Doc] | apply warning in |
SortWithoutAxiom (PrettyM Doc) [PrettyM Doc] | abstracting over a sort without an axiom. |
QuarkNotInHadron Sym (Set Sym) [PrettyM Doc] | quark not in hardon |
QuarkNotHadron Sym (PrettyM Doc) [PrettyM Doc] | quark is (annoted with) not a hadron |
ApplyPanic String (PrettyM Doc) | apply panic in |
OccursFailure (PrettyM Doc) (PrettyM Doc) | Occurs failure, i.e infinite type |
MismatchFailure (PrettyM Doc) (PrettyM Doc) |
Instances
Show Err Source # | |
IsString Err Source # | |
Defined in Language.PTS.Error fromString :: String -> Err Source # | |
Exception Err Source # | |
Defined in Language.PTS.Error toException :: Err -> SomeException Source # fromException :: SomeException -> Maybe Err Source # displayException :: Err -> String Source # | |
PrettyPrec Err Source # | |
AsErr Err Source # | |
(PrettyPrec1 t, PrettyPrec v) => Fallible t v Err Source # | |
Defined in Language.PTS.Error occursFailure :: v -> UTerm t v -> Err mismatchFailure :: t (UTerm t v) -> t (UTerm t v) -> Err | |
Monad m => MonadError Err (ScriptT s m) # | |
Defined in Language.PTS.Script |