Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Latest commit

 

History

History
17 lines (10 loc) · 633 Bytes

PString.md

File metadata and controls

17 lines (10 loc) · 633 Bytes

PString

Term s PString has a IsString instance. This allows you to make Plutarch level string terms from regular string literals, provided you have OverloadedStrings turned on.

{-# LANGUAGE OverloadedStrings #-}

"foo"

where "foo" is actually Term s PString.

It also has a PEq instance. And its terms have Semigroup and Monoid instances - which work the way you would expect.

It does not have a PlutusType instance.

This is synonymous to Plutus Core builtin string (actually Text).