Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Flat instances for Plutus Core types. Make sure to read Note [Stable encoding of TPLC] and Note [Stable encoding of UPLC] before touching anything in this file.
Documentation
safeEncodeBits :: NumBits -> Word8 -> Encoding Source #
Orphan instances
Flat Data Source # | |
Flat DeBruijn Source # | |
Flat FakeNamedDeBruijn Source # | |
encode :: FakeNamedDeBruijn -> Encoding decode :: Get FakeNamedDeBruijn size :: FakeNamedDeBruijn -> NumBits -> NumBits | |
Flat Index Source # | |
Flat NamedDeBruijn Source # | |
encode :: NamedDeBruijn -> Encoding decode :: Get NamedDeBruijn size :: NamedDeBruijn -> NumBits -> NumBits | |
Flat NamedTyDeBruijn Source # | |
encode :: NamedTyDeBruijn -> Encoding decode :: Get NamedTyDeBruijn size :: NamedTyDeBruijn -> NumBits -> NumBits | |
Flat TyDeBruijn Source # | |
Flat Name Source # | |
Flat TyName Source # | |
Flat Unique Source # | |
Flat Version Source # | |
Flat (Binder DeBruijn) Source # | |
Flat (Binder FakeNamedDeBruijn) Source # | |
encode :: Binder FakeNamedDeBruijn -> Encoding decode :: Get (Binder FakeNamedDeBruijn) size :: Binder FakeNamedDeBruijn -> NumBits -> NumBits | |
Flat (Binder NamedDeBruijn) Source # | |
encode :: Binder NamedDeBruijn -> Encoding decode :: Get (Binder NamedDeBruijn) size :: Binder NamedDeBruijn -> NumBits -> NumBits | |
Flat (Binder NamedTyDeBruijn) Source # | |
encode :: Binder NamedTyDeBruijn -> Encoding decode :: Get (Binder NamedTyDeBruijn) size :: Binder NamedTyDeBruijn -> NumBits -> NumBits | |
Flat (Binder Name) Source # | |
Flat (Binder TyName) Source # | |
Flat ann => Flat (Kind ann) Source # | |
Flat a => Flat (Normalized a) Source # | |
encode :: Normalized a -> Encoding decode :: Get (Normalized a) size :: Normalized a -> NumBits -> NumBits | |
Closed uni => Flat (SomeTypeIn uni) Source # | |
encode :: SomeTypeIn uni -> Encoding decode :: Get (SomeTypeIn uni) size :: SomeTypeIn uni -> NumBits -> NumBits | |
(Flat ann, Flat tyname) => Flat (TyVarDecl tyname ann) Source # | |
(Closed uni, Everywhere uni Flat) => Flat (Some (ValueOf uni)) Source # | |
(Closed uni, Flat ann, Flat tyname) => Flat (Type tyname uni ann) Source # | |
(Closed uni, Flat ann, Flat tyname, Flat name) => Flat (VarDecl tyname name uni ann) Source # | |
(Flat ann, Flat (Term tyname name uni fun ann)) => Flat (Program tyname name uni fun ann) Source # | |
(Closed uni, Everywhere uni Flat, Flat fun, Flat ann, Flat tyname, Flat name) => Flat (Term tyname name uni fun ann) Source # | |