| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.AstSize
Documentation
kindAstSize :: Kind a -> AstSize #
Count the number of AST nodes in a kind.
>>>kindAstSize $ Type ()AstSize {unAstSize = 1}>>>kindAstSize $ KindArrow () (KindArrow () (Type ()) (Type ())) (Type ())AstSize {unAstSize = 5}
typeAstSize :: Type tyname uni ann -> AstSize #
Count the number of AST nodes in a type.
tyVarDeclAstSize :: TyVarDecl tyname ann -> AstSize #
termAstSize :: Term tyname name uni fun ann -> AstSize #
Count the number of AST nodes in a term.
varDeclAstSize :: VarDecl tyname name uni ann -> AstSize #
programAstSize :: Program tyname name uni fun ann -> AstSize #
Count the number of AST nodes in a program.
serialisedAstSize :: Flat a => a -> Integer #
Compute the size of the serializabled form of a value.