-
Notifications
You must be signed in to change notification settings - Fork 154
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
enumFrom
errors for Index 0
#2851
Comments
I think the definition of |
I mean, it even states https://hackage.haskell.org/package/base-4.20.0.1/docs/Data-Enum.html#v:enumFrom
which would have the following reduction to WHNF:
|
You are right, there is no requirement that |
I agree that the empty list is the desirable outcome here, even though there are no Haskell laws preventing the current implementation. |
enumFrom
and alike should not error forIndex 0
. They should return the empty list instead.The text was updated successfully, but these errors were encountered: