| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusCore.AstSize
Synopsis
- newtype AstSize = AstSize {}
- kindAstSize :: Kind a -> AstSize
- typeAstSize :: forall tyname (uni :: Type -> Type) ann. Type tyname uni ann -> AstSize
- tyVarDeclAstSize :: TyVarDecl tyname ann -> AstSize
- termAstSize :: forall tyname name (uni :: Type -> Type) fun ann. Term tyname name uni fun ann -> AstSize
- varDeclAstSize :: forall tyname name (uni :: Type -> Type) ann. VarDecl tyname name uni ann -> AstSize
- programAstSize :: forall tyname name (uni :: Type -> Type) fun ann. Program tyname name uni fun ann -> AstSize
- serialisedAstSize :: Flat a => a -> Integer
Documentation
Instances
| Monoid AstSize Source # | |
| Semigroup AstSize Source # | |
| Num AstSize Source # | |
Defined in PlutusCore.AstSize | |
| Show AstSize Source # | |
| Eq AstSize Source # | |
| Ord AstSize Source # | |
Defined in PlutusCore.AstSize | |
| Pretty AstSize Source # | |
Defined in PlutusCore.AstSize | |
| PrettyBy config AstSize Source # | |
Defined in PlutusCore.AstSize | |
kindAstSize :: Kind a -> AstSize Source #
Count the number of AST nodes in a kind.
>>>kindAstSize $ Type ()AstSize {unAstSize = 1}>>>kindAstSize $ KindArrow () (KindArrow () (Type ()) (Type ())) (Type ())AstSize {unAstSize = 5}
typeAstSize :: forall tyname (uni :: Type -> Type) ann. Type tyname uni ann -> AstSize Source #
Count the number of AST nodes in a type.
tyVarDeclAstSize :: TyVarDecl tyname ann -> AstSize Source #
termAstSize :: forall tyname name (uni :: Type -> Type) fun ann. Term tyname name uni fun ann -> AstSize Source #
Count the number of AST nodes in a term.
varDeclAstSize :: forall tyname name (uni :: Type -> Type) ann. VarDecl tyname name uni ann -> AstSize Source #
programAstSize :: forall tyname name (uni :: Type -> Type) fun ann. Program tyname name uni fun ann -> AstSize Source #
Count the number of AST nodes in a program.
serialisedAstSize :: Flat a => a -> Integer Source #
Compute the size of the serializabled form of a value.