Skip to content

Support CodeUnit and CodePoint parsing #44

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

Merged
merged 3 commits into from
Jul 27, 2018
Merged

Conversation

garyb
Copy link
Member

@garyb garyb commented Jul 4, 2018

An alternative to #43 perhaps.

/cc @justinwoo

@@ -27,8 +30,9 @@ import Data.Char (toCharCode)
import Data.Either (Either(..))
import Data.Foldable (class Foldable, foldMap, elem, notElem)
import Data.Maybe (Maybe(..))
import Data.String (Pattern(..), drop, length, indexOf', stripPrefix)
import Data.String.CodePoints (drop, length, indexOf', stripPrefix)
import Data.String.CodeUnits (charAt, singleton)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will probably cause issues

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also any combinator with "Char" below should be removed/replaced in some way?

@justinwoo
Copy link
Collaborator

This sounds good, though I guess at some point there also needs to be a separate lib that can work with the actual CodePoints representation and return the final results as String

@justinwoo
Copy link
Collaborator

What do we want to do with this? I could at least try it sometime, and I'll merge it unless someone has issues with this.

@justinwoo justinwoo merged commit ff023be into master Jul 27, 2018
@justinwoo justinwoo deleted the both-units-and-points branch July 27, 2018 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants