Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. genValidSpec :: forall a (outers :: [Type]) . (Typeable a, Show a, GenValid a) => TestDef outers ()

    genvalidity-sydtest Test.Syd.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
    

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

    genvalidity-sydtest Test.Syd.Validity.GenValidity.Property

    The given generator generates only invalid data points

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

    genvalidity-sydtest Test.Syd.Validity.GenValidity.Property

    The given generator generates only valid data points

  4. module Test.Syd.Validity.Monoid

    Monoid properties You will need TypeApplications to use these.

  5. monoidSpec :: forall a (outers :: [Type]) . (Show a, Eq a, Monoid a, Typeable a, GenValid a) => TestDef outers ()

    genvalidity-sydtest Test.Syd.Validity.Monoid

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

    monoidSpec @[Int]
    

  6. monoidSpecOnArbitrary :: forall a (outers :: [Type]) . (Show a, Eq a, Monoid a, Typeable a, Arbitrary a) => TestDef outers ()

    genvalidity-sydtest Test.Syd.Validity.Monoid

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

    monoidSpecOnArbitrary @[Int]
    

  7. monoidSpecOnGen :: forall a (outers :: [Type]) . (Show a, Eq a, Monoid a, Typeable a) => Gen a -> String -> (a -> [a]) -> TestDef outers ()

    genvalidity-sydtest Test.Syd.Validity.Monoid

    Standard test spec for properties of Monoid instances for values generated by a given generator (and name for that generator). Example usage:

    monoidSpecOnGen (pure "a") "singleton list of 'a'"
    

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

    genvalidity-sydtest Test.Syd.Validity.Operations.Identity

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

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

    genvalidity-sydtest Test.Syd.Validity.Operations.Identity

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

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

    genvalidity-sydtest Test.Syd.Validity.Operations.Identity

Page 705 of many | Previous | Next