Tuesday, September 7, 2010

Builder monoid for Data.Text

In case you missed it, the 0.8 release of the text package includes a builder monoid for creating Text values, similar to the one in the binary package. The builder monoid can efficiently glue together small chunks of Text or characters into a lazy Text value.

The monoid is useful for implementing e.g. templating languages that work with Unicode text and fulfills the same roles as e.g. StringBuffer in Java.

Read the API documentation.

No comments:

Post a Comment