Created
November 17, 2016 01:28
-
-
Save jacobstanley/ee5b139b50296e65abffb7365ca8bd31 to your computer and use it in GitHub Desktop.
Revisions
-
jacobstanley created this gist
Nov 17, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ prop_foo :: Property () prop_foo = do x <- forAll $ elements ["a", "b", "c"] y <- forAll $ chooseInt 0 10 guard $ not (x == "a" && y == 5) -- works like (==>) from QuickCheck ..