Merge pull request #52 from michaelt/patch-1
comment on mappending Builders improved with mention of <>
commit7f74ebb9c6962a277552b2f709aca24c776d2fb4
authorBryan O'Sullivan <bos@serpentine.com>
dateSat 21 Sep 2013, 14:00 (13 years ago)
parent8fa213a053cf0a
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