Hoogle Search

Within LTS Haskell 24.64 (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-sydtest Test.Syd.Validity.GenValidity.Property

    The given generator generates only valid data points

  2. module Test.Syd.Validity.Monoid

    Monoid properties You will need TypeApplications to use these.

  3. 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]
    

  4. 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]
    

  5. 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'"
    

  6. 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
    

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

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

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

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

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

    No documentation available.

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

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

    No documentation available.

Page 483 of many | Previous | Next