weaver-test icon indicating copy to clipboard operation
weaver-test copied to clipboard

Cats instances for Scalacheck `Gen`?

Open armanbilge opened this issue 3 years ago • 1 comments

Specifically, to help with this: https://github.com/disneystreaming/weaver-test/blob/850a8a6aeb4875d916663092e362eb0bfc24bc99/docs/scalacheck.md?plain=1#L46-L53

Which is a reasonable setup IMO. Personally I'm just missing some of the handy combinators for composition. E.g. it would be nice to express that example using .product or .tupled instead of needing the multi-line for ... yield.

There's options like cats-scalacheck but it would be very convenient to be able to do this out-of-the-box.

armanbilge avatar Oct 02 '22 04:10 armanbilge

So you're suggesting inlining the instances in weaver ? I'm not fundamentally opposed to it

Baccata avatar Oct 02 '22 19:10 Baccata