hedgehogqa / haskell-hedgehog

Release with confidence, state-of-the-art property testing for Haskell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way of limiting retries from within a generator?

AriFordsham opened this issue · comments

I would like to be able to write a generator that restricts the number of times a shrink can be retried.

The API has only withRetries that works on a Property.

Is there a way of doing this (or equivalent) from within the Gen monad?

It sounds to me like you are asking for a particular solution instead of describing your problem (aka the XY problem).

Can you describe your problem?