comment on mappending Builders improved with mention of <>
commit053cf0a70ccc3bb55ea492cafc54d172ef19018c
authorMichael Thompson <what_is_it_to_do_anything@yahoo.com>
dateWed 17 Jul 2013, 15:36 (13 years ago)
parent0fc9b4d
Data/Text/Lazy/Builder.hs+7−1
@@ -26,8 +26,14 @@
2626--
2727-- > singleton 'a' `mappend` singleton 'b' `mappend` singleton 'c'
2828--
29−-- as the latter associates @mappend@ to the left.
29+-- as the latter associates @mappend@ to the left. Or, equivalently,
30+-- prefer
31+--
32+-- > singleton 'a' <> singleton 'b' <> singleton 'c'
3033--
34+-- since the '<>' from recent versions of 'Data.Monoid' associates
35+-- to the right.
36+
3137-----------------------------------------------------------------------------
3238
3339module Data.Text.Lazy.Builder