Skip to content
New issue

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

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

Already on GitHub? # to your account

parseInteger and parsePositive are incorrect on Int #4866

Open
Riateche opened this issue May 30, 2020 · 0 comments
Open

parseInteger and parsePositive are incorrect on Int #4866

Riateche opened this issue May 30, 2020 · 0 comments

Comments

@Riateche
Copy link

Steps to Reproduce

In REPL:

:module Data.String
the (Maybe Int) (parseInteger "1111111111111111111111111")

Expected Behavior

parseInteger should return Nothing if the input can't be represented as an Int.

Observed Behavior

It returns incorrect value: Just 8375319363688624583.

Same issue with parsePositive.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant