Hoogle Search
Within LTS Haskell 24.9 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
monoidSpecOnArbitrary :: (Show a, Eq a, Monoid a, Typeable a, Arbitrary a) => Specgenvalidity-hspec Test.Validity.Monoid Standard test spec for properties of Monoid instances for arbitrary values Example usage:
monoidSpecOnArbitrary @[Int]
ordSpecOnArbitrary :: (Show a, Ord a, Typeable a, Arbitrary a) => Specgenvalidity-hspec Test.Validity.Ord Standard test spec for properties of Ord instances for arbitrary values Example usage:
ordSpecOnArbitrary @Int
showReadRoundTripOnArbitrary :: (Show a, Eq a, Read a, Arbitrary a) => Propertygenvalidity-hspec Test.Validity.Show showReadRoundTripOnArbitrary @Double
showReadSpecOnArbitrary :: (Show a, Eq a, Read a, Typeable a, Arbitrary a) => Specgenvalidity-hspec Test.Validity.Show Standard test spec for properties of Show and Read instances for arbitrary values Example usage:
showReadSpecOnArbitrary @Double
antireflexivityOnArbitrary :: (Show a, Arbitrary a) => (a -> a -> Bool) -> Propertygenvalidity-sydtest Test.Syd.Validity antireflexivityOnArbitrary ((<) :: Int -> Int -> Bool)
antireflexivityOnArbitrary ((/=) :: Int -> Int -> Bool)
antireflexivityOnArbitrary ((>) :: Int -> Int -> Bool)
antisymmetryOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> Bool) -> Propertygenvalidity-sydtest Test.Syd.Validity antisymmetryOnArbitrary ((>) :: Int -> Int -> Bool)
antisymmetryOnArbitrary ((>=) :: Int -> Int -> Bool)
antisymmetryOnArbitrary ((<=) :: Int -> Int -> Bool)
antisymmetryOnArbitrary ((<) :: Int -> Int -> Bool)
antisymmetryOnArbitrary (Data.List.isPrefixOf :: [Int] -> [Int] -> Bool)
antisymmetryOnArbitrary (Data.List.isSuffixOf :: [Int] -> [Int] -> Bool)
antisymmetryOnArbitrary (Data.List.isInfixOf :: [Int] -> [Int] -> Bool)
antisymmetryOnArbitrary ((\x y -> even x && odd y) :: Int -> Int -> Bool)
-
genvalidity-sydtest Test.Syd.Validity Standard test spec for properties of Applicative instances for values generated with Arbitrary instances Example usage:
applicativeSpecOnArbitrary @[]
associativeOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> a) -> Propertygenvalidity-sydtest Test.Syd.Validity associativeOnArbitrary ((*) :: Int -> Int -> Int)
associativeOnArbitrary ((+) :: Int -> Int -> Int)
commutativeOnArbitrary :: (Show a, Show b, Eq b, Arbitrary a) => (a -> a -> b) -> Propertygenvalidity-sydtest Test.Syd.Validity commutativeOnArbitrary ((+) :: Int -> Int -> Int)
commutativeOnArbitrary ((*) :: Int -> Int -> Int)
commutativeOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> a) -> PropertyeqSpecOnArbitrary :: (Show a, Eq a, Typeable a, Arbitrary a) => Specgenvalidity-sydtest Test.Syd.Validity Standard test spec for properties of Eq instances for arbitrary values Example usage:
eqSpecOnArbitrary @Int