-
Notifications
You must be signed in to change notification settings - Fork 6
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
fromInfinite
errors
#40
Comments
Yep, I can reproduce this one as well. |
Merged
Opened PR #41 with a fix |
Bodigrim
pushed a commit
that referenced
this issue
Apr 12, 2024
In the implementation of fromInfinite, we pass an infinite list to Data.Primitive.Array.fromListN (bits + 1), but fromListN expects a list a list of length (bits + 1), which results in a runtime error. To fix this, we add a check in go to break recursion and to ensure that the list that is passed into fromListN has length (bits + 1).
Merged
Fixed in #41. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the following example:
results in the error
Can you confirm if you can also reproduce this @Bodigrim? I can prepare a PR for this one as well. Thanks!
The text was updated successfully, but these errors were encountered: