Copyright | (c) Nathaniel Symer, 2015 |
---|---|
License | MIT |
Maintainer | nate@symer.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Lazy/Eager Text
builder built on top of
text technologies using better data structures
than the original Builder
.
It uses the Seq
data structure to hold chunks
rather than a List, because Seq
s have O(1)
access to either end of the structure. This is
crucial for accumulating chunks in as little time
possible.
Furthermore, this builder only copies a given sequence
of bytes at most once: from a Text
,String
, or Char
to a buffer.
Documentation
Wrapper around a function that applies changes
to a sequence of mutable buffers in ST
.
IsString Builder Source | |
Monoid Builder Source | |
Value Builder Source | |
Value [Builder] Source | |
Value (Builder, Builder) Source | |
Value (Builder, Builder, Builder) Source | |
Value (Builder, Builder, Builder, Builder) Source | |
Value (Builder, Builder, Builder, Builder, Builder) Source | |
Value (Builder, Builder, Builder, Builder, Builder, Builder) Source | |
Value (Builder, Builder, Builder, Builder, Builder, Builder, Builder) Source | |
Value (Builder, Builder, Builder, Builder, Builder, Builder, Builder, Builder) Source |
toLazyText :: Builder -> Text Source
Lazy version of toText
.