Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Builder.Catenable
specialized to ShortText
.
Synopsis
- data Builder
- pattern (:<) :: ShortText -> Builder -> Builder
- pattern (:>) :: Builder -> ShortText -> Builder
- run :: Builder -> Chunks
- length :: Builder -> Int
- shortText :: ShortText -> Builder
- char :: Char -> Builder
- word32Dec :: Word32 -> Builder
- word64Dec :: Word64 -> Builder
- int32Dec :: Int32 -> Builder
- int64Dec :: Int64 -> Builder
Type
Instances
IsString Builder Source # | Note: The choice of appending to the left side of |
Defined in Data.Builder.Catenable.Text fromString :: String -> Builder # | |
Monoid Builder Source # | |
Semigroup Builder Source # | |
Show Builder Source # | |
Eq Builder Source # | Not structural equality. Converts builders to chunks and then compares the chunks. |
Convenient infix operators
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
.