plutus-core-1.54.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

failStringGet 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

showsPrecIntGet a → ShowS Source #

showGet a → String Source #

showList ∷ [Get a] → ShowS Source #

NFData (Get a) Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

rnfGet 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

showsPrecIntSShowS Source #

showSString Source #

showList ∷ [S] → ShowS Source #

Eq S Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

(==)SSBool Source #

(/=)SSBool Source #

Ord S Source # 
Instance details

Defined in PlutusCore.Flat.Decoder.Types

Methods

compareSSOrdering Source #

(<)SSBool Source #

(<=)SSBool Source #

(>)SSBool Source #

(>=)SSBool Source #

maxSSS Source #

minSSS 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

tooMuchSpacePtr Word8SIO a Source #

badEncodingPtr Word8SStringIO a Source #

badOpStringIO a Source #