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. validIfSucceedsOnGens2 :: (Show a, Show b, Show c, Validity c, CanFail f) => (a -> b -> f c) -> Gen (a, b) -> ((a, b) -> [(a, b)]) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  2. validIfSucceedsOnGens3 :: (Show a, Show b, Show c, Show d, Validity d, CanFail f) => (a -> b -> c -> f d) -> Gen (a, b, c) -> ((a, b, c) -> [(a, b, c)]) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  3. arbitraryGeneratesOnlyValid :: (Show a, Validity a, Arbitrary a) => Property

    genvalidity-hspec Test.Validity.Arbitrary

    arbitrary only generates valid data

    arbitraryGeneratesOnlyValid @Int
    

  4. module Test.Validity.GenValidity

    Tests for GenValidity instances You will need TypeApplications to use these.

  5. genGeneratesInvalid :: (Show a, Validity a) => Gen a -> Property

    genvalidity-hspec Test.Validity.GenValidity

    The given generator generates only invalid data points

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

    genvalidity-hspec Test.Validity.GenValidity

    The given generator generates only valid data points

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

    genvalidity-hspec Test.Validity.GenValidity

    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]
    

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

    genvalidity-hspec Test.Validity.GenValidity

    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
    

  9. module Test.Validity.Monoid

    Monoid properties You will need TypeApplications to use these.

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

    genvalidity-hspec Test.Validity.Monoid

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

    monoidSpec @[Int]
    

Page 619 of many | Previous | Next