haskell / text

Haskell library for space- and time-efficient operations over Unicode text.
http://hackage.haskell.org/package/text
BSD 2-Clause "Simplified" License
408 stars 159 forks source link

Convenience functions for Builder #164

Open andrewthad opened 8 years ago

andrewthad commented 8 years ago

I would like to add the following functions to Data.Text.Lazy.Builder:

toStrictText :: Builder -> Text
unlines :: [Builder] -> Builder
unwords :: [Builder] -> Builder

Additionally, I think that variants of replicate, unfoldr, and unfoldN that work on Builder would be nice to have. I would be happy to implement this.

andrewthad commented 8 years ago

I've written a few of these in text-functions.

bos commented 7 years ago

These sound good, thanks.

Kleidukos commented 3 years ago

@andrewthad Would you be open to have these functions integrated into text ? I can do it.