plutus-core-1.70.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusCore.Flat.Decoder.Types

Description

Strict Decoder Types

Synopsis

Documentation

newtype Get a Source #

A decoder.

Given:

  • end of input buffer
  • current position in input buffer

Returns:

  • decoded value
  • new position in input buffer

Constructors

Get 

Fields

Instances

Instances details
MonadFail Get Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

fail ∷ String → Get a Source #

Applicative Get Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

pure ∷ a → Get a Source #

(<*>) ∷ Get (a → b) → Get a → Get b Source #

liftA2 ∷ (a → b → c) → Get a → Get b → Get c Source #

(*>) ∷ Get a → Get b → Get b Source #

(<*) ∷ Get a → Get b → Get a Source #

Functor Get Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

fmap ∷ (a → b) → Get a → Get b Source #

(<$) ∷ a → Get b → Get a Source #

Monad Get Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

(>>=) ∷ Get a → (a → Get b) → Get b Source #

(>>) ∷ Get a → Get b → Get b Source #

return ∷ a → Get a Source #

Show (Get a) Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

showsPrec ∷ Int → Get a → ShowS Source #

show ∷ Get a → String Source #

showList ∷ [Get a] → ShowS Source #

NFData (Get a) Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

rnf ∷ Get a → () Source #

data S Source #

Decoder state

Constructors

S 

Fields

Instances

Instances details
Show S Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

showsPrec ∷ Int → S → ShowS Source #

show ∷ S → String Source #

showList ∷ [S] → ShowS Source #

Eq S Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

(==) ∷ S → S → Bool Source #

(/=) ∷ S → S → Bool Source #

Ord S Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

compare ∷ S → S → Ordering Source #

(<) ∷ S → S → Bool Source #

(<=) ∷ S → S → Bool Source #

(>) ∷ S → S → Bool Source #

(>=) ∷ S → S → Bool Source #

max ∷ S → S → S Source #

min ∷ S → S → S Source #

data GetResult a Source #

Constructors

GetResult !S !a 

Instances

Instances details
Functor GetResult Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

fmap ∷ (a → b) → GetResult a → GetResult b Source #

(<$) ∷ a → GetResult b → GetResult a Source #

type Decoded a = Either DecodeException a Source #

A decoded value

tooMuchSpace ∷ Ptr Word8 → S → IO a Source #

badEncoding ∷ Ptr Word8 → S → String → IO a Source #

badOp ∷ String → IO a Source #