[Haskell-cafe] how do I intercalate for Data.Text.Lazy.Builder

Javran Cheng javran.c at gmail.com
Mon Apr 22 16:38:32 UTC 2019


Darn right! I've checked Foldable, Semigroup and Monoid, never thought
about the function right above intercalate, thanks!

On Mon, Apr 22, 2019 at 2:50 AM Patrick Chilton <chpatrick at gmail.com> wrote:

> If you want to join a list of Builders with a delimiter, you can use
> `mconcat (intersperse d xs)`
> This works for any Monoid.
>
> On Mon, Apr 22, 2019 at 10:59 AM Javran Cheng <javran.c at gmail.com> wrote:
>
>> Hi Cafe,
>>
>> Just a quick question, the title says it all: how do I intercalate for
>> the Builder?
>> Given what it does, it makes sense that things like `intercalate` should
>> be out of the box,
>> yet I feel the export list of Builder is very limited.
>>
>> --
>> Javran (Fang) Cheng
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.
>
>

-- 
Javran (Fang) Cheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190422/bd86cce6/attachment.html>


More information about the Haskell-Cafe mailing list