Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are looking for:</p> <pre><code>quickCheckWith stdArgs { maxSuccess = 5000 } someProp </code></pre> <p><strong>How I found out</strong></p> <ol> <li>I went to the <a href="http://hackage.haskell.org/packages/archive/QuickCheck/2.4.1.1/doc/html/Test-QuickCheck.html">API documentation</a>.</li> <li>The 2nd thing I saw, after <code>quickCheck</code> was the <code>Args</code> type with a <code>maxSuccess</code> field.</li> <li>I didn't want to write all the fields, so I looked for a value of type <code>Args</code> - finding <code>stdArgs</code>. (Use your browsers search function - ctrl-f usually). OTOH, I could have used <a href="http://www.haskell.org/hoogle/?hoogle=Args%20%2bquickcheck">hoogle</a>.</li> <li>I needed to use my <code>Args</code> type somewhere so I kept looking. The next line was <code>quickCheckWith</code> - bingo! On the other hand, I could have used <a href="http://www.haskell.org/hoogle/?hoogle=Args%20-%3E%20Bool%20-%3E%20IO%20%28%29%20%2bquickcheck">hoogle</a>.</li> </ol> <p><strong>How Else Can You Find Out</strong></p> <p>As I stated above, you could have used hoogle to find a lot of the functions, assuming you realize the <code>Args</code> type is the core of what you need (from the haddocks).</p> <p>Otherwise, you are probably reduced to looking at what other packages do, which means you need to know what other packages are worth looking at. The <a href="http://code.haskell.org/QuickCheck/stable/examples/">examples</a> folder in QuickCheck seems obvious, but not all packages include such examples. Using <a href="http://packdeps.haskellers.com/reverse">reverse dependencies</a> you can often find <em>a package</em> to look at, but for QC lots of packages don't have explicit dependencies.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload