Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data RetainedSize
- newtype Size = Size {}
- termRetentionMap ∷ (HasUnique tyname TypeUnique, HasUnique name TermUnique, ToBuiltinMeaning uni fun) ⇒ BuiltinsInfo uni fun → VarsInfo tyname name uni ann → Term tyname name uni fun ann → IntMap Size
- annotateWithRetainedSize ∷ (HasUnique name TermUnique, HasUnique tyname TypeUnique, ToBuiltinMeaning uni fun) ⇒ BuiltinsInfo 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 Source # prettyList ∷ [RetainedSize] → Doc ann Source # |
termRetentionMap ∷ (HasUnique tyname TypeUnique, HasUnique name TermUnique, ToBuiltinMeaning uni fun) ⇒ BuiltinsInfo uni fun → VarsInfo tyname name uni ann → 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) ⇒ BuiltinsInfo 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.