Skip to content
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

random-source Hackage release (and deprecation?) #93

Open
nh2 opened this issue Sep 8, 2023 · 4 comments
Open

random-source Hackage release (and deprecation?) #93

nh2 opened this issue Sep 8, 2023 · 4 comments

Comments

@nh2
Copy link

nh2 commented Sep 8, 2023

Hi,

could you make a new Hackage release to https://hackage.haskell.org/package/random-source that includes the recently-merged upper bound fixes?

Also, on that page it says Deprecated, but without explanation.

Could you either remove the deprecation, or add some details / info on what should be used instead?

Thanks and best greetings!

@nh2
Copy link
Author

nh2 commented Sep 8, 2023

Some confusion: Some PRs such as https://github.com/haskell-numerics/random-fu/pull/91/files fix only other packages and don't fix random-source, that one still has base >= 4 && <4.16.

That said, https://github.com/haskell-numerics/random-fu/pull/82/files is supposed to add ghc9.2.2. compatibility, which has base-4.16.1.0, which is incompatible with the above constraint.

Should random-source work here?

@nh2
Copy link
Author

nh2 commented Sep 8, 2023

Looks like 82d8fb1 is some hint on transition paths away from random-source. See also #67

@idontgetoutmuch
Copy link
Member

I can look at this tomorrow - I was away in Australia for a few weeks

@idontgetoutmuch
Copy link
Member

I have remembered some of the history. random-source is deprecated and you should use random or mwc-random or potentially anything else that supports the StatefulGen typeclass (e.g. https://hackage.haskell.org/package/mwc-random-0.15.0.2/docs/System-Random-MWC.html#g:1)

See also my thoughts from last year #83 (comment). Sadly I have made no progress on this although I do now have time. I think beefing up mwc-random is going to be the simplest for now. So the idea would be you can use mwc-random just for distributions and not the actual MWC algorithm.

I'd love to improve monad-bayes to be the replacement for random-fu but I don't have the time to do this.

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

No branches or pull requests

2 participants