| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.Error
Contents
Synopsis
- data ParserError
- = BuiltinTypeNotAStar !Text))))
| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.Error
Contents
data UniqueError ann #
Constructors
| MultiplyDefined !Unique !ann !ann | |
| IncoherentUsage !Unique !ann !ann | |
| FreeVariable !Unique !ann |
data ExpectedShapeOr a #
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 | |
Fields
| |
data FreeVariableError #
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 |
| Exception FreeVariableError # | |||||||||||
Defined in PlutusCore.DeBruijn.Internal Methods errorComponentLen :: a -> Int # Length of the error component in characters, used for highlighting of parse errors in input string. Since: megaparsec-7.0.0 Instancesdata ApplyProgramError # Errors from Constructors
Instances
Orphan instances | |||||||||||