Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
genGeneratesValid :: (Show a, Validity a) => Gen a -> Propertygenvalidity-hspec Test.Validity The given generator generates only valid data points
genValidGeneratesValid :: (Show a, GenValid a) => Propertygenvalidity-hspec Test.Validity genValid only generates valid data
genValidGeneratesValid @()
genValidGeneratesValid @Bool
genValidGeneratesValid @Ordering
genValidGeneratesValid @Char
genValidGeneratesValid @Int
genValidGeneratesValid @Float
genValidGeneratesValid @Double
genValidGeneratesValid @Integer
genValidGeneratesValid @(Maybe Int)
genValidGeneratesValid @[Int]
genValidSpec :: (Typeable a, Show a, GenValid a) => Specgenvalidity-hspec Test.Validity A Spec that specifies that genValid only generates valid data. In general it is a good idea to add this spec to your test suite if you write a custom implementation of genValid. Example usage:
genValidSpec @Int
leftIdentity :: (Show a, Eq a, GenValid a) => (b -> a -> a) -> b -> Propertygenvalidity-hspec Test.Validity leftIdentity (flip ((^) :: Int -> Int -> Int)) 1
leftIdentityOnArbitrary :: (Show a, Eq a, Arbitrary a) => (b -> a -> a) -> b -> Propertygenvalidity-hspec Test.Validity leftIdentityOnArbitrary (flip ((^) :: Int -> Int -> Int)) 1
leftIdentityOnElemWithEquality :: (b -> a -> a) -> (a -> a -> Bool) -> b -> a -> Boolgenvalidity-hspec Test.Validity leftIdentityOnGen :: (Show a, Eq a) => (b -> a -> a) -> b -> Gen a -> (a -> [a]) -> Propertygenvalidity-hspec Test.Validity No documentation available.
-
genvalidity-hspec Test.Validity No documentation available.
monoidSpec :: (Show a, Eq a, Monoid a, Typeable a, GenValid a) => Specgenvalidity-hspec Test.Validity Standard test spec for properties of Monoid instances for valid values Example usage:
monoidSpec @[Int]
monoidSpecOnArbitrary :: (Show a, Eq a, Monoid a, Typeable a, Arbitrary a) => Specgenvalidity-hspec Test.Validity Standard test spec for properties of Monoid instances for arbitrary values Example usage:
monoidSpecOnArbitrary @[Int]