Skip to content

Add an API for the ByteString builder #22

@wismill

Description

@wismill

I just realized that this package uses a ByteString builder to implement (|>%) and (%<|).

I did play a bit with them in #20, but felt uncomfortable with unsafePerformIO, etc. I then tried with Data.ByteString.Lazy.foldlChunks, which obviously would not lead to great perf, giving we need to allocate intermediate chunks and then copy them.

Should we provide an API for the ByteString builder? It would unlock quite a lot of features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions