plutarch-1.9.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Plutarch.String

Contents

Synopsis

Type

data PString s Source #

Plutus BuiltinString values

Instances

Instances details
PEq PString Source # 
Instance details

Defined in Plutarch.String

Methods

(#==) :: forall (s :: S). Term s PString -> Term s PString -> Term s PBool Source #

PLiftable PString Source # 
Instance details

Defined in Plutarch.String

Associated Types

type AsHaskell PString Source #

type PlutusRepr PString Source #

DerivePlutusType PString Source # 
Instance details

Defined in Plutarch.String

Associated Types

type DPTStrat PString Source #

PlutusType PString Source # 
Instance details

Defined in Plutarch.String

Methods

pcon' :: forall (s :: S). PString s -> Term s (PInner PString) Source #

pmatch' :: forall (s :: S) (b :: PType). Term s (PInner PString) -> (PString s -> Term s b) -> Term s b Source #

PShow PString Source # 
Instance details

Defined in Plutarch.Show

Methods

pshow' :: forall (s :: S). Bool -> Term s PString -> Term s PString Source #

Generic (PString s) Source # 
Instance details

Defined in Plutarch.String

Associated Types

type Rep (PString s) :: Type -> Type Source #

Methods

from :: PString s -> Rep (PString s) x Source #

to :: Rep (PString s) x -> PString s Source #

IsString (Term s PString) Source # 
Instance details

Defined in Plutarch.String

Monoid (Term s PString) Source # 
Instance details

Defined in Plutarch.String

Semigroup (Term s PString) Source # 
Instance details

Defined in Plutarch.String

type AsHaskell PString Source #

@since WIP

Instance details

Defined in Plutarch.String

type PlutusRepr PString Source # 
Instance details

Defined in Plutarch.String

type DPTStrat PString Source # 
Instance details

Defined in Plutarch.String

type PContravariant' PString Source # 
Instance details

Defined in Plutarch.String

type PCovariant' PString Source # 
Instance details

Defined in Plutarch.String

type PInner PString Source # 
Instance details

Defined in Plutarch.String

type PVariant' PString Source # 
Instance details

Defined in Plutarch.String

type Rep (PString s) Source # 
Instance details

Defined in Plutarch.String

type Rep (PString s) = D1 ('MetaData "PString" "Plutarch.String" "plutarch-1.9.0-DaxzFvLNVysDL1hkJ4YFrw" 'True) (C1 ('MetaCons "PString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Term s POpaque))))

pisHexDigit :: forall (s :: S). Term s (PInteger :--> PBool) Source #

Verify if the given argument is the ASCII encoding of a hex digit. This includes specifically the following ASCII ranges (inclusively):

  • 48-54 (digits 0 through 9)
  • 65-70 (upper-case A through upper-case F)
  • 97-102 (lower-case a through lower-case f)

@since WIP

pfromText :: Text -> Term s PString Source #

Deprecated: Use pconstant instead.

Create a PString from Text

pencodeUtf8 :: Term s (PString :--> PByteString) Source #

Encode a PString using UTF-8.