Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prelude.Text.{lower,upper}ASCII utilities #1164

Merged
merged 8 commits into from
May 11, 2021

Conversation

Gabriella439
Copy link
Contributor

Related to #631

In particular, this is based on the suggestion from:

#631 (comment)

Related to #631

In particular, this is based on the suggestion from:

#631 (comment)
@ad-si
Copy link
Contributor

ad-si commented May 4, 2021

Wouldn't it make sense to also include upperASCII while you're already at it?

Gabriella439 and others added 3 commits May 4, 2021 08:59
Oops! 🙂

… as caught by @basile-henry

Co-authored-by: Basile Henry <bjm.henry@gmail.com>
@Gabriella439 Gabriella439 changed the title Add Prelude.Text.lowerASCII utility Add Prelude.Text.{lower,upper}ASCII utilities May 4, 2021
@MonoidMusician
Copy link
Collaborator

You might want to add a warning that decomposed unicode characters (base character + modifier diacritics) may be affected by case conversion:

assert : lowerASCII ""  ""

(I believe that is correct, but you should test!)

Prelude/Text/upperASCII.dhall Outdated Show resolved Hide resolved
@Gabriella439 Gabriella439 merged commit fbe7f32 into master May 11, 2021
@Gabriella439 Gabriella439 deleted the gabriel/lower_ascii_2 branch May 11, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants