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

Replace Data.Char.Unicode.digitToInt by Data.Char.Unicode.hexDigitToInt and Data.Char.Unicode.isDigit by Data.Char.Unicode.isDecDigit #103

Conversation

kl0tl
Copy link
Contributor

@kl0tl kl0tl commented Dec 28, 2020

Data.Char.Unicode.digitToInt and Data.Char.Unicode.isDigit were deprecated in purescript-contrib/purescript-unicode#31.

Should we also deprecate Text.Parsing.Parser.Token.digit for a new decDigit function? This would be consistent with the changes in purescript-unicode.

@kl0tl
Copy link
Contributor Author

kl0tl commented Dec 28, 2020

The build fails because newtype doesn’t depend on safe-coerce in the package set but it compiles with the rc5 branch of my fork:

let upstream =
      https://raw.githubusercontent.com/kl0tl/package-sets/rc5/src/packages.dhall 

in  upstream

@thomashoneyman
Copy link
Contributor

I’m not entirely sure about adding decDigit; I’m going to merge this without it and we can do a follow-up issue to discuss.

@thomashoneyman thomashoneyman merged commit d48e10a into purescript-contrib:main Dec 28, 2020
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