| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusCore.Error
Contents
Synopsis
- data ParserError
- data ParserErrorBundle = ParseErrorB !(ParseErrorBundle Text ParserError)
- data NormCheckError tyname name (uni :: Type -> Type) fun ann
- data UniqueError ann
- = MultiplyDefined !Unique !ann !ann
- | IncoherentUsage !Unique !ann !ann
- | FreeVariable !Unique !ann
- data ExpectedShapeOr a
- = ExpectedShape !Text ![Text]
- | ExpectedExact !a
- data TypeError term (uni :: Type -> Type) fun ann
- = KindMismatch !ann !(Type TyName uni ()) !(ExpectedShapeOr (Kind ())) !(Kind ())
- | TypeMismatch !ann !term !(ExpectedShapeOr (Type TyName uni ())) !(Normalized (Type TyName uni ()))
- | TyNameMismatch !ann !TyName !TyName
- | NameMismatch !ann !Name !Name
- | FreeTypeVariableE !ann !TyName
- | FreeVariableE !ann !Name
- | UnknownBuiltinFunctionE !ann !fun
- | UnsupportedCaseBuiltin !ann !Text
- data FreeVariableError
- = FreeUnique !Unique
- | FreeIndex !Index
- data Error (uni :: Type -> Type) fun ann
- = ParseErrorE !ParserErrorBundle
- | UniqueCoherencyErrorE !(UniqueError ann)
- | TypeErrorE !(TypeError (Term TyName Name uni fun ()) uni fun ann)
- | NormCheckErrorE !(NormCheckError TyName Name uni fun ann)
- | FreeVariableErrorE !FreeVariableError
- throwingEither :: MonadError e m => AReview e t -> Either t a -> m a
- class Ord a => ShowErrorComponent a where
- showErrorComponent :: a -> String
- errorComponentLen :: a -> Int
- data ApplyProgramError = MkApplyProgramError Version Version
Documentation
data ParserError Source #
An error encountered during parsing.
Constructors
| BuiltinTypeNotAStar !Text !SourcePos | |
| UnknownBuiltinFunction !Text !SourcePos ![Text] | |
| InvalidBuiltinConstant !Text !Text !SourcePos |
Instances
data ParserErrorBundle Source #
Constructors
| ParseErrorB !(ParseErrorBundle Text ParserError) |
Instances
| Generic ParserErrorBundle Source # | |||||
Defined in PlutusCore.Error Associated Types
Methods from :: ParserErrorBundle -> Rep ParserErrorBundle x Source # to :: Rep ParserErrorBundle x -> ParserErrorBundle Source # | |||||
| Show ParserErrorBundle Source # | |||||
Defined in PlutusCore.Error | |||||
| NFData ParserErrorBundle Source # | |||||
Defined in PlutusCore.Error Methods rnf :: ParserErrorBundle -> () Source # | |||||
| Eq ParserErrorBundle Source # | |||||
Defined in PlutusCore.Error Methods (==) :: ParserErrorBundle -> ParserErrorBundle -> Bool Source # (/=) :: ParserErrorBundle -> ParserErrorBundle -> Bool Source # | |||||
| Pretty ParserErrorBundle Source # | |||||
Defined in PlutusCore.Error | |||||
| type Rep ParserErrorBundle Source # | |||||
Defined in PlutusCore.Error type Rep ParserErrorBundle = D1 ('MetaData "ParserErrorBundle" "PlutusCore.Error" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "ParseErrorB" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ParseErrorBundle Text ParserError)))) | |||||
data NormCheckError tyname name (uni :: Type -> Type) fun ann Source #
Constructors
| BadType !ann !(Type tyname uni ann) !Text | |
| BadTerm !ann !(Term tyname name uni fun ann) !Text |
Instances
| (Pretty ann, PrettyBy config (Type tyname uni ann), PrettyBy config (Term tyname name uni fun ann)) => PrettyBy config (NormCheckError tyname name uni fun ann) Source # | |||||
Defined in PlutusCore.Error Methods prettyBy :: config -> NormCheckError tyname name uni fun ann -> Doc ann0 # prettyListBy :: config -> [NormCheckError tyname name uni fun ann] -> Doc ann0 # | |||||
| Functor (NormCheckError tyname name uni fun) Source # | |||||
Defined in PlutusCore.Error Methods fmap :: (a -> b) -> NormCheckError tyname name uni fun a -> NormCheckError tyname name uni fun b Source # (<$) :: a -> NormCheckError tyname name uni fun b -> NormCheckError tyname name uni fun a Source # | |||||
| Generic (NormCheckError tyname name uni fun ann) Source # | |||||
Defined in PlutusCore.Error Associated Types
Methods from :: NormCheckError tyname name uni fun ann -> Rep (NormCheckError tyname name uni fun ann) x Source # to :: Rep (NormCheckError tyname name uni fun ann) x -> NormCheckError tyname name uni fun ann Source # | |||||
| (Show tyname, Show name, Closed uni, Everywhere uni Show, Show fun, Show ann, GShow uni) => Show (NormCheckError tyname name uni fun ann) Source # | |||||
Defined in PlutusCore.Error | |||||
| (NFData tyname, NFData name, Closed uni, Everywhere uni NFData, NFData fun, NFData ann) => NFData (NormCheckError tyname name uni fun ann) Source # | |||||
Defined in PlutusCore.Error Methods rnf :: NormCheckError tyname name uni fun ann -> () Source # | |||||
| (Eq (Term tyname name uni fun ann), Eq (Type tyname uni ann), GEq uni, Closed uni, Everywhere uni Eq, Eq fun, Eq ann) => Eq (NormCheckError tyname name uni fun ann) Source # | |||||
Defined in PlutusCore.Error Methods (==) :: NormCheckError tyname name uni fun ann -> NormCheckError tyname name uni fun ann -> Bool Source # (/=) :: NormCheckError tyname name uni fun ann -> NormCheckError tyname name uni fun ann -> Bool Source # | |||||
| type Rep (NormCheckError tyname name uni fun ann) Source # | |||||
Defined in PlutusCore.Error type Rep (NormCheckError tyname name uni fun ann) = D1 ('MetaData "NormCheckError" "PlutusCore.Error" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "BadType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Type tyname uni ann)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) :+: C1 ('MetaCons "BadTerm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Term tyname name uni fun ann)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))) | |||||
data UniqueError ann Source #
Constructors
| MultiplyDefined !Unique !ann !ann | |
| IncoherentUsage !Unique !ann !ann | |
| FreeVariable !Unique !ann |
Instances
| Functor UniqueError Source # | |||||
Defined in PlutusCore.Error Methods fmap :: (a -> b) -> UniqueError a -> UniqueError b Source # (<$) :: a -> UniqueError b -> UniqueError a Source # | |||||
| Exception (UniqueError SrcSpan) Source # | |||||
Defined in PlutusCore.Error Methods toException :: UniqueError SrcSpan -> SomeException Source # fromException :: SomeException -> Maybe (UniqueError SrcSpan) Source # | |||||
| Generic (UniqueError ann) Source # | |||||
Defined in PlutusCore.Error Associated Types
Methods from :: UniqueError ann -> Rep (UniqueError ann) x Source # to :: Rep (UniqueError ann) x -> UniqueError ann Source # | |||||
| Show ann => Show (UniqueError ann) Source # | |||||
Defined in PlutusCore.Error | |||||
| NFData ann => NFData (UniqueError ann) Source # | |||||
Defined in PlutusCore.Error Methods rnf :: UniqueError ann -> () Source # | |||||
| Eq ann => Eq (UniqueError ann) Source # | |||||
Defined in PlutusCore.Error Methods (==) :: UniqueError ann -> UniqueError ann -> Bool Source # (/=) :: UniqueError ann -> UniqueError ann -> Bool Source # | |||||
| Pretty ann => Pretty (UniqueError ann) Source # | |||||
Defined in PlutusCore.Error | |||||
| type Rep (UniqueError ann) Source # | |||||
Defined in PlutusCore.Error type Rep (UniqueError ann) = D1 ('MetaData "UniqueError" "PlutusCore.Error" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "MultiplyDefined" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Unique) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann))) :+: (C1 ('MetaCons "IncoherentUsage" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Unique) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann))) :+: C1 ('MetaCons "FreeVariable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Unique) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann)))) | |||||
data ExpectedShapeOr a Source #
This is needed for nice kind/type checking error messages. In some cases the type checker knows
the exact type that an expression has to have for type checking to succeed (see any of
checkTypeM functions and its usages), which is what ExpectedExact is suitable for. In other
cases the type checker only cares about the shape of the inferred type, e.g. the type checker
knows that the type of a function has to be dom -> cod for type checking to succeed, but it
doesn't yet care what dom and cod exactly are. Which is what ExpectedShape is useful for as
it allows one to specify the shape of an expected type with some existential variables in it when
it's impossible to provide an exact type.
Constructors
| ExpectedShape | |
| ExpectedExact !a | |
Instances
| Functor ExpectedShapeOr Source # | |||||
Defined in PlutusCore.Error Methods fmap :: (a -> b) -> ExpectedShapeOr a -> ExpectedShapeOr b Source # (<$) :: a -> ExpectedShapeOr b -> ExpectedShapeOr a Source # | |||||
| PrettyBy PrettyConfigPlc a => PrettyBy PrettyConfigPlc (ExpectedShapeOr a) Source # | |||||
Defined in PlutusCore.Error Methods prettyBy :: PrettyConfigPlc -> ExpectedShapeOr a -> Doc ann # prettyListBy :: PrettyConfigPlc -> [ExpectedShapeOr a] -> Doc ann # | |||||
| Generic (ExpectedShapeOr a) Source # | |||||
Defined in PlutusCore.Error Associated Types
Methods from :: ExpectedShapeOr a -> Rep (ExpectedShapeOr a) x Source # to :: Rep (ExpectedShapeOr a) x -> ExpectedShapeOr a Source # | |||||
| Show a => Show (ExpectedShapeOr a) Source # | |||||
Defined in PlutusCore.Error | |||||
| NFData a => NFData (ExpectedShapeOr a) Source # | |||||
Defined in PlutusCore.Error Methods rnf :: ExpectedShapeOr a -> () Source # | |||||
| Eq a => Eq (ExpectedShapeOr a) Source # | |||||
Defined in PlutusCore.Error Methods (==) :: ExpectedShapeOr a -> ExpectedShapeOr a -> Bool Source # (/=) :: ExpectedShapeOr a -> ExpectedShapeOr a -> Bool Source # | |||||
| type Rep (ExpectedShapeOr a) Source # | |||||
Defined in PlutusCore.Error type Rep (ExpectedShapeOr a) = D1 ('MetaData "ExpectedShapeOr" "PlutusCore.Error" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "ExpectedShape" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Text])) :+: C1 ('MetaCons "ExpectedExact" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a))) | |||||
data TypeError term (uni :: Type -> Type) fun ann Source #
Constructors
| KindMismatch | |
Fields
| |
| TypeMismatch | |
Fields
| |
| TyNameMismatch !ann !TyName !TyName | |
| NameMismatch !ann !Name !Name | |
| FreeTypeVariableE !ann !TyName | |
| FreeVariableE !ann !Name | |
| UnknownBuiltinFunctionE !ann !fun | |
| UnsupportedCaseBuiltin !ann !Text | |
Instances
| (Pretty term, PrettyUni uni, Pretty fun, Pretty ann) => PrettyBy PrettyConfigPlc (TypeError term uni fun ann) Source # | |||||
Defined in PlutusCore.Error Methods prettyBy :: PrettyConfigPlc -> TypeError term uni fun ann -> Doc ann0 # prettyListBy :: PrettyConfigPlc -> [TypeError term uni fun ann] -> Doc ann0 # | |||||
| Functor (TypeError term uni fun) Source # | |||||
| Generic (TypeError term uni fun ann) Source # | |||||
Defined in PlutusCore.Error Associated Types
| |||||
| (GShow uni, Show term, Show fun, Show ann) => Show (TypeError term uni fun ann) Source # | |||||
| (Closed uni, NFData ann, NFData term, NFData fun) => NFData (TypeError term uni fun ann) Source # | |||||
Defined in PlutusCore.Error | |||||
| (GEq uni, Eq term, Eq fun, Eq ann) => Eq (TypeError term uni fun ann) Source # | |||||
| type Rep (TypeError term uni fun ann) Source # | |||||
Defined in PlutusCore.Error type Rep (TypeError term uni fun ann) = D1 ('MetaData "TypeError" "PlutusCore.Error" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (((C1 ('MetaCons "KindMismatch" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Type TyName uni ()))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ExpectedShapeOr (Kind ()))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Kind ())))) :+: C1 ('MetaCons "TypeMismatch" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 term)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ExpectedShapeOr (Type TyName uni ()))) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Normalized (Type TyName uni ())))))) :+: (C1 ('MetaCons "TyNameMismatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TyName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TyName))) :+: C1 ('MetaCons "NameMismatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Name))))) :+: ((C1 ('MetaCons "FreeTypeVariableE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TyName)) :+: C1 ('MetaCons "FreeVariableE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Name))) :+: (C1 ('MetaCons "UnknownBuiltinFunctionE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 fun)) :+: C1 ('MetaCons "UnsupportedCaseBuiltin" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ann) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))))) | |||||
data FreeVariableError Source #
We cannot do a correct translation to or from de Bruijn indices if the program is not well-scoped. So we throw an error in such a case.
Constructors
| FreeUnique !Unique | |
| FreeIndex !Index |
Instances
| Exception FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal Methods toException :: FreeVariableError -> SomeException Source # fromException :: SomeException -> Maybe FreeVariableError Source # | |||||
| Generic FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal Associated Types
Methods from :: FreeVariableError -> Rep FreeVariableError x Source # to :: Rep FreeVariableError x -> FreeVariableError Source # | |||||
| Show FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal | |||||
| NFData FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal Methods rnf :: FreeVariableError -> () Source # | |||||
| Eq FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal Methods (==) :: FreeVariableError -> FreeVariableError -> Bool Source # (/=) :: FreeVariableError -> FreeVariableError -> Bool Source # | |||||
| Ord FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal Methods compare :: FreeVariableError -> FreeVariableError -> Ordering Source # (<) :: FreeVariableError -> FreeVariableError -> Bool Source # (<=) :: FreeVariableError -> FreeVariableError -> Bool Source # (>) :: FreeVariableError -> FreeVariableError -> Bool Source # (>=) :: FreeVariableError -> FreeVariableError -> Bool Source # max :: FreeVariableError -> FreeVariableError -> FreeVariableError Source # min :: FreeVariableError -> FreeVariableError -> FreeVariableError Source # | |||||
| Pretty FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal | |||||
| type Rep FreeVariableError Source # | |||||
Defined in PlutusCore.DeBruijn.Internal type Rep FreeVariableError = D1 ('MetaData "FreeVariableError" "PlutusCore.DeBruijn.Internal" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) (C1 ('MetaCons "FreeUnique" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Unique)) :+: C1 ('MetaCons "FreeIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Index))) | |||||
data Error (uni :: Type -> Type) fun ann Source #
Constructors
| ParseErrorE !ParserErrorBundle | |
| UniqueCoherencyErrorE !(UniqueError ann) | |
| TypeErrorE !(TypeError (Term TyName Name uni fun ()) uni fun ann) | |
| NormCheckErrorE !(NormCheckError TyName Name uni fun ann) | |
| FreeVariableErrorE !FreeVariableError |
Instances
| (PrettyUni uni, Pretty fun, Pretty ann) => PrettyBy PrettyConfigPlc (Error uni fun ann) Source # | |||||
Defined in PlutusCore.Error Methods prettyBy :: PrettyConfigPlc -> Error uni fun ann -> Doc ann0 # prettyListBy :: PrettyConfigPlc -> [Error uni fun ann] -> Doc ann0 # | |||||
| Functor (Error uni fun) Source # | |||||
| Generic (Error uni fun ann) Source # | |||||
Defined in PlutusCore.Error Associated Types
| |||||
| (Show fun, Show ann, Closed uni, Everywhere uni Show, GShow uni, Show ParserError) => Show (Error uni fun ann) Source # | |||||
| (NFData fun, NFData ann, Closed uni, Everywhere uni NFData, NFData ParserError) => NFData (Error uni fun ann) Source # | |||||
Defined in PlutusCore.Error | |||||
| (Eq fun, Eq ann, Closed uni, Everywhere uni Eq, GEq uni, Eq ParserError) => Eq (Error uni fun ann) Source # | |||||
| type Rep (Error uni fun ann) Source # | |||||
Defined in PlutusCore.Error type Rep (Error uni fun ann) = D1 ('MetaData "Error" "PlutusCore.Error" "plutus-core-1.60.0.0-LXFqBsoUlXsJIEqLytHte7" 'False) ((C1 ('MetaCons "ParseErrorE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ParserErrorBundle)) :+: C1 ('MetaCons "UniqueCoherencyErrorE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (UniqueError ann)))) :+: (C1 ('MetaCons "TypeErrorE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (TypeError (Term TyName Name uni fun ()) uni fun ann))) :+: (C1 ('MetaCons "NormCheckErrorE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NormCheckError TyName Name uni fun ann))) :+: C1 ('MetaCons "FreeVariableErrorE" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FreeVariableError))))) | |||||
throwingEither :: MonadError e m => AReview e t -> Either t a -> m a Source #
class Ord a => ShowErrorComponent a where #
Minimal complete definition
Instances
| ShowErrorComponent Void | |
Defined in Text.Megaparsec.Error | |
| ShowErrorComponent ParserError Source # | |
Defined in PlutusCore.Error | |
data ApplyProgramError Source #
Errors from applyProgram for PIR, PLC, UPLC.
Constructors
| MkApplyProgramError Version Version |
Instances
| Exception ApplyProgramError Source # | |
Defined in PlutusCore.Error Methods toException :: ApplyProgramError -> SomeException Source # fromException :: SomeException -> Maybe ApplyProgramError Source # | |
| Show ApplyProgramError Source # | |
Defined in PlutusCore.Error | |