text icon indicating copy to clipboard operation
text copied to clipboard

Convenience functions for Builder

Open andrewthad opened this issue 7 years ago • 3 comments

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 avatar Sep 03 '16 12:09 andrewthad

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

andrewthad avatar Sep 06 '16 14:09 andrewthad

These sound good, thanks.

bos avatar Aug 08 '17 02:08 bos

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

Kleidukos avatar Oct 21 '21 20:10 Kleidukos