Summary and call for discussion on text proposal

Ross Paterson ross at
Sun Nov 7 12:40:22 EST 2010

On Sun, Nov 07, 2010 at 02:36:35PM +0000, Duncan Coutts wrote:
> There are a number of options. To illustrate them let us pick an
> example function that breaks a text into two. There are two versions:
>   * break based on a character predicate
>   * break based on a substring

In fact break is the only example of two such versions conflicting with
Data.List.  For partitionBy and spanBy there are no substring variants,
and find is not related to findBy; it is actually repeated application
of break.  So a possibility is

- rename break (and ensure that breakEnd matches)
- rename find as the plural of whatever break is renamed as
- rename breakBy -> break, findBy -> find, partitionBy -> partition
  and spanBy -> span

More information about the Libraries mailing list