Commits

Michael Thompson committed 01471e9

comment on mappending Builders improved with mention of <>

  • Participants
  • Parent commits cbde16c

Comments (0)

Files changed (1)

File Data/Text/Lazy/Builder.hs

 --
 -- > singleton 'a' `mappend` singleton 'b' `mappend` singleton 'c'
 --
--- as the latter associates @mappend@ to the left.
+-- as the latter associates @mappend@ to the left. Or, equivalently,
+-- prefer
 --
+--  > singleton 'a' <> singleton 'b' <> singleton 'c'
+--
+-- since the '<>' from recent versions of 'Data.Monoid' associates 
+-- to the right.
+
 -----------------------------------------------------------------------------
 
 module Data.Text.Lazy.Builder