| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.Examples.Builtins
Contents
Synopsis
- size :: forall a. (Bounded a, Enum a) => Int
- data ExtensionFun
- = Factorial
- | ForallFortyTwo
- | SumInteger
- | Const
- | Id
- | IdAssumeBool
- | IdAssumeCheckBool
- | IdSomeConstantBool
- | IdIntegerAsBool
- | IdFInteger
- | IdList
- | IdRank2
- | ScottToMetaUnit
- | FailingSucc
- | ExpensiveSucc
- | FailingPlus
- | ExpensivePlus
- | IsConstant
- | UnsafeCoerce
- | UnsafeCoerceEl
- | Undefined
- | Absurd
- | ErrorPrime
- | Comma
- | BiconstPair
- | Swap
- | SwapEls
- | ExtensionVersion
- | TrackCosts
- | IntNoIntegerNoWord
- newtype MetaForall name a = MetaForall a
- data PlcListRep (a :: Type)
- data BuiltinErrorCall = BuiltinErrorCall
- class Whatever a where
- whatever :: a
Documentation
data ExtensionFun #
Constructors
Instances
newtype MetaForall name a #
Normally forall in the type of a Haskell function gets detected and instantiated
automatically, however there's no way of doing that for a forall that binds a never referenced
type variable. Which is OK, because that would be a pretty weird builtin, however it's definable
and for the purpose of testing we do introduce such a builtin, hence this definition allowing us
to create an all that binds a never referenced type variable in Plutus while still using
makeBuiltinMeaning.
Constructors
| MetaForall a |
Instances
| (name Some TyNameRep] # | |
| type ToBinds uni acc (PlcListRep a :: Type) # | |
Defined in PlutusCore.Examples.Builtins | |
| type ToHoles uni _1 (PlcListRep a :: Type) # | |
Defined in PlutusCore.Examples.Builtins | |
| type IsBuiltin uni (PlcListRep a :: Type) # | |
Defined in PlutusCore.Examples.Builtins | |
data BuiltinErrorCall #
Constructors
| BuiltinErrorCall |
Instances
| Exception BuiltinErrorCall # | |
Defined in PlutusCore.Examples.Builtins Methods toException :: BuiltinErrorCall -> SomeException # | |
| Show BuiltinErrorCall # | |
Defined in PlutusCore.Examples.Builtins Methods showsPrec :: Int -> BuiltinErrorCall -> ShowS # show :: BuiltinErrorCall -> String # showList :: [BuiltinErrorCall] -> ShowS # | |
| Eq BuiltinErrorCall # | |
Defined in PlutusCore.Examples.Builtins Methods (==) :: BuiltinErrorCall -> BuiltinErrorCall -> Bool # (/=) :: BuiltinErrorCall -> BuiltinErrorCall -> Bool # | |
For the most part we don't care about costing functions of example builtins, hence this class for being explicit about not caring.
Instances
| Whatever ExBudgetStream # | |
Defined in PlutusCore.Examples.Builtins Methods | |
| Whatever b => Whatever (a -> b) # | |
Defined in PlutusCore.Examples.Builtins | |