| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusIR.AstSize
| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusIR.AstSize
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 :: forall tyname (uni :: Type -> Type) ann. 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.