There’s already a library cabal-test-quickcheck for this, but it’s not available for newer GHC versions. I made my own that offers a bit more functionality, but might be a bit more finicky to use. It’s cabal-detailed-quickcheck on Hackage.
https://hackage.haskell.org/package/cabal-detailed-quickcheck