-
Notifications
You must be signed in to change notification settings - Fork 16
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
Deprecate Numeric.readFloat
#284
Comments
As I mentioned in https://gitlab.haskell.org/ghc/ghc/-/issues/23538#note_556813, it is possible to fix the bug without changing the type signature, even if in an ugly way. If we deprecate a function, what do we recommend to use instead? If we just push users to reimplement |
|
Which laws guarantee |
The current documentation already points to |
I understand I feel that |
When you fold a binary (or decimal) string into a number, you do either Maybe it would be clearer to rename
The proposed approach works fine for
No one except me voiced their opinions so far. I don't think that even I am "so reluctant", maybe just not very eager. (Adding warning to |
In GHC #2358 it was discovered that
Numeric.readFloat
takes time linear in the size of the denoted number. This also resulted in the HSEC-2023-0007 advisory.Since it is not possible to fix this bug while maintaining the same type signature as
readFloat
, we should deprecate it and point users towards usingread
forFloat
andDouble
instead.The text was updated successfully, but these errors were encountered: