Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
The version of Plutus Core used by this program.
The intention is to convey different levels of backwards compatibility for existing scripts: - Major version changes are backwards-incompatible - Minor version changes are backwards-compatible - Patch version changes should be entirely invisible (and we will likely not use this level)
The version used should be changed only when the language itself changes. For example, adding a new kind of term to the language would require a minor version bump; removing a kind of term would require a major version bump.
Similarly, changing the semantics of the language will require a version bump, typically a major one. This is the main reason why the version is actually tracked in the AST: we can have two language versions with identical ASTs but different semantics, so we need to track the version explicitly.
Compatibility is about compatibility for specific scripts, not about e.g. tools which consume scripts. Adding a new kind of term does not change how existing scripts behave, but does change what tools would need to do to process scripts.
Instances
Generic Version Source # | |
Show Version Source # | |
NFData Version Source # | |
Defined in PlutusCore.Version | |
Flat Version Source # | |
Eq Version Source # | |
Ord Version Source # | |
Defined in PlutusCore.Version | |
Hashable Version Source # | |
Pretty Version Source # | |
type Rep Version Source # | |
Defined in PlutusCore.Version type Rep Version = D1 ('MetaData "Version" "PlutusCore.Version" "plutus-core-1.39.0.0-inplace" 'False) (C1 ('MetaCons "Version" 'PrefixI 'True) (S1 ('MetaSel ('Just "_versionMajor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "_versionMinor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural) :*: S1 ('MetaSel ('Just "_versionPatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))) |
plcVersion100 ∷ Version Source #
Plutus Core version 1.0.0
plcVersion110 ∷ Version Source #
Plutus Core version 1.1.0
firstVersion ∷ Version Source #
The first version of Plutus Core supported by this library.
latestVersion ∷ Version Source #
The latest version of Plutus Core supported by this library.
knownVersions ∷ Set Version Source #
The set of versions that are "known", i.e. that have been released and have actual differences associated with them.