nick8325 / quickcheck

Automatic testing of Haskell programs.
Other
713 stars 119 forks source link

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

Closed templateK closed 4 years ago

templateK commented 4 years ago

splitmix-0.1 has no instance for the RandomGen SMGen

phadej commented 4 years ago

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

templateK commented 4 years ago

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 commented 4 years ago

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

templateK commented 4 years ago

Alright thanks for the fast response.