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

No instance for (RandomGen SMGen) arising from a use of ‘split’ #300

Closed
templateK opened this issue Jun 4, 2020 · 4 comments
Closed

Comments

@templateK
Copy link

splitmix-0.1 has no instance for the RandomGen SMGen

@phadej
Copy link
Contributor

phadej commented Jun 4, 2020

See #299. You probably relaxed bounds of QuickCheck on splitmix, the responsibility is then on you.

@templateK
Copy link
Author

templateK commented Jun 4, 2020

I Just stumbled upon this issue when compiling polysemy which dependes on QuickCheck.
I should have searched more about whether it's intentional and why the instance is removed. Apologies.

Anyway, I didn't relax bounds for quickcheck and I see no upper bound for splitmix.

  -- Use splitmix on newer GHCs.
  if impl(ghc >= 7.0)
    Build-depends: splitmix >= 0.0.4
  else
    cpp-options: -DNO_SPLITMIX

@phadej
Copy link
Contributor

phadej commented Jun 4, 2020

There are revisions made on Hackage: https://hackage.haskell.org/package/QuickCheck-2.14/revisions/

@templateK
Copy link
Author

Alright thanks for the fast response.

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