Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data RetainedSize
- newtype Size = Size {}
- termRetentionMap :: (HasUnique tyname TypeUnique, HasUnique name TermUnique, ToBuiltinMeaning uni fun) => Term tyname name uni fun ann -> IntMap Size
- annotateWithRetainedSize :: (HasUnique name TermUnique, HasUnique tyname TypeUnique, ToBuiltinMeaning uni fun) => Term tyname name uni fun ann -> Term tyname name uni fun RetainedSize
Documentation
data RetainedSize Source #
Instances
Show RetainedSize Source # | |
Defined in PlutusIR.Analysis.RetainedSize | |
Pretty RetainedSize Source # | |
Defined in PlutusIR.Analysis.RetainedSize pretty :: RetainedSize -> Doc ann # prettyList :: [RetainedSize] -> Doc ann # |
termRetentionMap :: (HasUnique tyname TypeUnique, HasUnique name TermUnique, ToBuiltinMeaning uni fun) => Term tyname name uni fun ann -> IntMap Size Source #
Compute the retention map of a term.
annotateWithRetainedSize :: (HasUnique name TermUnique, HasUnique tyname TypeUnique, ToBuiltinMeaning uni fun) => Term tyname name uni fun ann -> Term tyname name uni fun RetainedSize Source #
Annotate each part of every Binding
in a term with the size that it retains.