plutus-core-1.0.0.1: Language library for Plutus Core
Safe Haskell None
Language Haskell2010

PlutusIR.Error

Documentation

data Error uni fun a Source #

Constructors

CompilationError a Text

A generic compilation error.

UnsupportedError a Text

An error relating specifically to an unsupported feature.

PLCError ( Error uni fun a)

An error from running some PLC function, lifted into this error type for convenience.

PLCTypeError ( TypeError ( Term TyName Name uni fun ()) uni fun a)
PIRTypeError ( TypeErrorExt uni a)

Instances

Instances details
( GShow uni, Closed uni, Everywhere uni PrettyConst , Pretty fun, Pretty ann) => PrettyBy PrettyConfigPlc ( Error uni fun ann) Source #
Instance details

Defined in PlutusIR.Error

(PrettyUni uni ann, Pretty fun) => Show ( Error uni fun ann) Source #
Instance details

Defined in PlutusIR.Error

(PrettyUni uni ann, Typeable uni, Typeable fun, Typeable ann, Pretty fun) => Exception ( Error uni fun ann) Source #
Instance details

Defined in PlutusIR.Error

( Pretty ann, Pretty fun, GShow uni, Closed uni, Everywhere uni PrettyConst ) => Pretty ( Error uni fun ann) Source #
Instance details

Defined in PlutusIR.Error

Methods

pretty :: Error uni fun ann -> Doc ann0 Source #

prettyList :: [ Error uni fun ann] -> Doc ann0 Source #

HasErrorCode ( Error _a _b _c) Source #
Instance details

Defined in PlutusIR.Error

AsFreeVariableError ( Error uni fun a) Source #
Instance details

Defined in PlutusIR.Error

AsTypeErrorExt ( Error uni fun a) uni a Source #
Instance details

Defined in PlutusIR.Error

AsError ( Error uni fun a) uni fun a Source #
Instance details

Defined in PlutusIR.Error

AsTypeError ( Error uni fun a) ( Term TyName Name uni fun ()) uni fun a Source #
Instance details

Defined in PlutusIR.Error

class AsTypeError r term uni fun ann | r -> term uni fun ann where Source #

Minimal complete definition

_TypeError

Instances

Instances details
AsTypeError ( Error uni fun ann) ( Term TyName Name uni fun ()) uni fun ann Source #
Instance details

Defined in PlutusCore.Error

AsTypeError ( Error uni fun a) ( Term TyName Name uni fun ()) uni fun a Source #
Instance details

Defined in PlutusIR.Error

AsTypeError ( TypeError term uni fun ann) term uni fun ann Source #
Instance details

Defined in PlutusCore.Error

data TypeError term uni fun ann Source #

Instances

Instances details
( GShow uni, Closed uni, Everywhere uni PrettyConst , Pretty ann, Pretty fun, Pretty term) => PrettyBy PrettyConfigPlc ( TypeError term uni fun ann) Source #
Instance details

Defined in PlutusCore.Error

Functor ( TypeError term uni fun) Source #
Instance details

Defined in PlutusCore.Error

Methods

fmap :: (a -> b) -> TypeError term uni fun a -> TypeError term uni fun b Source #

(<$) :: a -> TypeError term uni fun b -> TypeError term uni fun a Source #

( GEq uni, Eq ann, Eq term, Eq fun) => Eq ( TypeError term uni fun ann) Source #
Instance details

Defined in PlutusCore.Error

Methods

(==) :: TypeError term uni fun ann -> TypeError term uni fun ann -> Bool Source #

(/=) :: TypeError term uni fun ann -> TypeError term uni fun ann -> Bool Source #

( GShow uni, Show ann, Show term, Show fun) => Show ( TypeError term uni fun ann) Source #
Instance details

Defined in PlutusCore.Error

Generic ( TypeError term uni fun ann) Source #
Instance details

Defined in PlutusCore.Error

Associated Types

type Rep ( TypeError term uni fun ann) :: Type -> Type Source #

Methods

from :: TypeError term uni fun ann -> Rep ( TypeError term uni fun ann) x Source #

to :: Rep ( TypeError term uni fun ann) x -> TypeError term uni fun ann Source #

( Closed uni, NFData ann, NFData term, NFData fun) => NFData ( TypeError term uni fun ann) Source #
Instance details

Defined in PlutusCore.Error

Methods

rnf :: TypeError term uni fun ann -> () Source #

HasErrorCode ( TypeError _a _b _c _d) Source #
Instance details

Defined in PlutusCore.Error

AsTypeError ( TypeError term uni fun ann) term uni fun ann Source #
Instance details

Defined in PlutusCore.Error

type Rep ( TypeError term uni fun ann) Source #
Instance details

Defined in PlutusCore.Error

type Rep ( TypeError term uni fun ann) = D1 (' MetaData "TypeError" "PlutusCore.Error" "plutus-core-1.0.0.1-76bWF9ZEWyb4eDyjHx0kCS" ' False ) (( C1 (' MetaCons "KindMismatch" ' PrefixI ' False ) (( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ann) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Type TyName uni ()))) :*: ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Kind ())) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Kind ())))) :+: C1 (' MetaCons "TypeMismatch" ' PrefixI ' False ) (( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ann) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 term)) :*: ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Type TyName uni ())) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Normalized ( Type TyName uni ())))))) :+: ( C1 (' MetaCons "FreeTypeVariableE" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ann) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 TyName )) :+: ( C1 (' MetaCons "FreeVariableE" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ann) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Name )) :+: C1 (' MetaCons "UnknownBuiltinFunctionE" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ann) :*: S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 fun)))))

data TypeErrorExt uni ann Source #

Instances

Instances details
PrettyUni uni ann => PrettyBy PrettyConfigPlc ( TypeErrorExt uni ann) Source #
Instance details

Defined in PlutusIR.Error

( Eq ann, GEq uni) => Eq ( TypeErrorExt uni ann) Source #
Instance details

Defined in PlutusIR.Error

( Show ann, GShow uni) => Show ( TypeErrorExt uni ann) Source #
Instance details

Defined in PlutusIR.Error

Generic ( TypeErrorExt uni ann) Source #
Instance details

Defined in PlutusIR.Error

Associated Types

type Rep ( TypeErrorExt uni ann) :: Type -> Type Source #

( NFData ann, Closed uni) => NFData ( TypeErrorExt uni ann) Source #
Instance details

Defined in PlutusIR.Error

Methods

rnf :: TypeErrorExt uni ann -> () Source #

HasErrorCode ( TypeErrorExt _a _b) Source #
Instance details

Defined in PlutusIR.Error

AsTypeErrorExt ( TypeErrorExt uni ann) uni ann Source #
Instance details

Defined in PlutusIR.Error

type Rep ( TypeErrorExt uni ann) Source #
Instance details

Defined in PlutusIR.Error

newtype Normalized a Source #

Constructors

Normalized

Fields

Instances

Instances details
Functor Normalized Source #
Instance details

Defined in PlutusCore.Core.Type

Applicative Normalized Source #
Instance details

Defined in PlutusCore.Core.Type

Foldable Normalized Source #
Instance details

Defined in PlutusCore.Core.Type

Traversable Normalized Source #
Instance details

Defined in PlutusCore.Core.Type

PrettyBy config a => PrettyBy config ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

Eq a => Eq ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

Show a => Show ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

Generic ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

Associated Types

type Rep ( Normalized a) :: Type -> Type Source #

NFData a => NFData ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

Flat a => Flat ( Normalized a) Source #
Instance details

Defined in PlutusCore.Flat

Pretty a => Pretty ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

Rename a => Rename ( Normalized a) Source #
Instance details

Defined in PlutusCore.Rename

type Rep ( Normalized a) Source #
Instance details

Defined in PlutusCore.Core.Type

type Rep ( Normalized a) = D1 (' MetaData "Normalized" "PlutusCore.Core.Type" "plutus-core-1.0.0.1-76bWF9ZEWyb4eDyjHx0kCS" ' True ) ( C1 (' MetaCons "Normalized" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unNormalized") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 a)))