-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add module with default implementation for type classes #19
Comments
Absolutely, I was hoping someone would step up and implement those. I think we agreed on that
With regard to the name of the module I can't come up with a better one. Things come to mind |
I think it's better to leave floating point number out of scope for first PR. It's big topic and even have separate issue for them #6
|
RE clusivity. I think that for For floating point maintaining closed/open distinction could be difficult because of rounding errors. Naive translation of either |
It should definitely be out of scope for the first PR. We will in a much better place with performance and quality and floating point numbers will be no worse than they are now. |
I think that we should add module
System.Random.Defaults
(name subject to debate)Provide default implementations for
genWord32R
andgenWord64R
in terms ofgenWord32
&genWord64
respectively. Efficient implementation is far from trivial so it makes sense to provide defaults to PRNG implementorsProvide default implementations for methods of
Uniform
&UniformRange
type classes and possible others should they be created. For examplehave been proposed multiple times. There's obvious implementation of
UniformRange
in terms ofEnum
. We also could provide newtype wrappers for use with DerivingViaIf there's general agreement I'll make pull request
The text was updated successfully, but these errors were encountered: