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.

  1. genGeneratesValid :: (Show a, Validity a) => Gen a -> Property

    genvalidity-hspec Test.Validity

    The given generator generates only valid data points

  2. genValidGeneratesValid :: (Show a, GenValid a) => Property

    genvalidity-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]
    

  3. genValidSpec :: (Typeable a, Show a, GenValid a) => Spec

    genvalidity-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
    

  4. leftIdentity :: (Show a, Eq a, GenValid a) => (b -> a -> a) -> b -> Property

    genvalidity-hspec Test.Validity

    leftIdentity (flip ((^) :: Int -> Int -> Int)) 1
    

  5. leftIdentityOnArbitrary :: (Show a, Eq a, Arbitrary a) => (b -> a -> a) -> b -> Property

    genvalidity-hspec Test.Validity

    leftIdentityOnArbitrary (flip ((^) :: Int -> Int -> Int)) 1
    

  6. leftIdentityOnElemWithEquality :: (b -> a -> a) -> (a -> a -> Bool) -> b -> a -> Bool

    genvalidity-hspec Test.Validity

  7. leftIdentityOnGen :: (Show a, Eq a) => (b -> a -> a) -> b -> Gen a -> (a -> [a]) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  8. leftIdentityOnGenWithEquality :: Show a => (b -> a -> a) -> (a -> a -> Bool) -> b -> Gen a -> (a -> [a]) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  9. monoidSpec :: (Show a, Eq a, Monoid a, Typeable a, GenValid a) => Spec

    genvalidity-hspec Test.Validity

    Standard test spec for properties of Monoid instances for valid values Example usage:

    monoidSpec @[Int]
    

  10. monoidSpecOnArbitrary :: (Show a, Eq a, Monoid a, Typeable a, Arbitrary a) => Spec

    genvalidity-hspec Test.Validity

    Standard test spec for properties of Monoid instances for arbitrary values Example usage:

    monoidSpecOnArbitrary @[Int]
    

Page 615 of many | Previous | Next