array-builder-0.1.4.1: Builders for arrays
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Builder.Catenable.Text

Description

Data.Builder.Catenable specialized to ShortText.

Synopsis

Type

data Builder Source #

Instances

Instances details
IsString Builder Source #

Note: The choice of appending to the left side of Empty instead of the right side of arbitrary. Under ordinary use, this difference cannot be observed by the user.

Instance details

Defined in Data.Builder.Catenable.Text

Methods

fromString :: String -> Builder #

Monoid Builder Source # 
Instance details

Defined in Data.Builder.Catenable.Text

Semigroup Builder Source # 
Instance details

Defined in Data.Builder.Catenable.Text

Show Builder Source # 
Instance details

Defined in Data.Builder.Catenable.Text

Eq Builder Source #

Not structural equality. Converts builders to chunks and then compares the chunks.

Instance details

Defined in Data.Builder.Catenable.Text

Methods

(==) :: Builder -> Builder -> Bool #

(/=) :: Builder -> Builder -> Bool #

Convenient infix operators

pattern (:<) :: ShortText -> Builder -> Builder infixr 5 Source #

pattern (:>) :: Builder -> ShortText -> Builder infixl 5 Source #

Run

run :: Builder -> Chunks Source #

The result is chunks, but this is guaranteed to be UTF-8 encoded text, so if needed, you can flatten out the chunks and convert back to ShortText.

Properties

length :: Builder -> Int Source #

Number of Unicode code points in the sequence.

Create