Add examples to Text

#11 · open · 3 comments

View on GitHub ↗

MaxGabriel

> Based on the [open pull requests](https://github.com/bos/text/pulls) for the text package, it may take some time for these changes to be merged. Several of the functions in Text have examples, but it'd be nice for more of them to have those. Usually these functions are pretty simple to understand, so this isn't a huge priority. http://hackage.haskell.org/package/text-1.2.1.3/docs/Data-Text.html

Comments

MaxGabriel

I believe someone is working on this

alexliew

I've [added examples](https://github.com/alexliew/text/commit/dfe7e864c073f48c1342a13bc8cb1cdeb7e64f35?diff=unified) to map, intersperse and intercalate. Do you think it would be better to use the matching examples from Data.List?

MaxGabriel

I wouldn't think consistency of examples is very important; I'd say that's unnecessary.