Haskell Platform proposal: Add case-insensitive

Ganesh Sittampalam ganesh at earth.li
Mon Jan 21 21:03:28 CET 2013

On 11/01/2013 20:00, Gregory Collins wrote:
> Hi all,
> First: Bas, would you support making case-insensitive a Haskell platform
> package?
> Assuming you say yes, I'd like to propose it for inclusion in the
> Haskell platform. The wiki page for this proposal is here:
>     http://trac.haskell.org/haskell-platform/wiki/Proposals/case-insensitive
> And the case-insensitive package can be found on Hackage:
>     http://hackage.haskell.org/package/case-insensitive
> If Bas is not willing to have case-insensitive be a platform package I
> will rescind the proposal.

I couldn't spot any tests. Some ideas:

- It uses a few different implementations of toLower (Data.Char, Text,
toLower8) depending on how it is being used. Those implementations could
be tested against each other.

- Some concrete test cases including ASCII, ISO-8859-1 and Unicode

I think tests are important particularly because there may be scope for
optimising some of the implementations in future.



More information about the Libraries mailing list