Closed tonyday567 closed 3 years ago
Added quickcheck: https://github.com/santiweight/poker-base/pull/34
Is there a no-opinions random package?
I know about https://hackage.haskell.org/package/random-1.2.1
But I don't follow the random ecosystem, so I'll defer to your knowledge. I do know that random
is fully maintained nowadays
Random.System is all we need. You end up with a bit of State boiler-plate, but it's nice to work with.
Just a note - it's quite obvious, but I made the mistake once - be sure not to generate non-normalised values for Hole
/ShapedHole
in the Arbitrary
instance.
I think Random
can wait - a good first issue to let people into the library...
Closing in favour of #54
For any property testing, we're going to need Arbitrary instances.
I also think dealing cards is in scope for base, and shouldn't attract opinion variance.