Hoogle Search

Within LTS Haskell 24.9 (ghc-9.10.2)

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

  1. idempotentOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a) -> Property

    genvalidity-sydtest Test.Syd.Validity

    id is idempotent for any type:

    idempotentOnArbitrary (id :: Int -> Int)
    
    const, given any input, is idempotent for any type as well:
    \int -> idempotentOnArbitrary (const int :: Int -> Int)
    

  2. identityOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> a) -> a -> Property

    genvalidity-sydtest Test.Syd.Validity

    identityOnArbitrary ((*) :: Int -> Int -> Int) 1
    
    identityOnArbitrary ((+) :: Int -> Int -> Int) 0
    

  3. inverseFunctionsIfFirstSucceedsOnArbitrary :: (Show a, Eq a, Arbitrary a, CanFail f) => (a -> f b) -> (b -> a) -> Property

    genvalidity-sydtest Test.Syd.Validity

    No documentation available.

  4. inverseFunctionsIfSecondSucceedsOnArbitrary :: (Show a, Eq a, Arbitrary a, CanFail f) => (a -> b) -> (b -> f a) -> Property

    genvalidity-sydtest Test.Syd.Validity

    No documentation available.

  5. inverseFunctionsIfSucceedOnArbitrary :: (Show a, Eq a, Arbitrary a, CanFail f, CanFail g) => (a -> f b) -> (b -> g a) -> Property

    genvalidity-sydtest Test.Syd.Validity

    No documentation available.

  6. inverseFunctionsOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> b) -> (b -> a) -> Property

    genvalidity-sydtest Test.Syd.Validity

    id is its own inverse function for every type: prop> inverseFunctionsOnArbitrary id (id :: Int -> Int)

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

    genvalidity-sydtest Test.Syd.Validity

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

  8. monadSpecOnArbitrary :: forall (f :: Type -> Type) . (Eq (f Int), Show (f Int), Monad f, Typeable f, Arbitrary (f Int)) => Spec

    genvalidity-sydtest Test.Syd.Validity

    Standard test spec for properties of Monad instances for values generated with Arbitrary instances Example usage:

    monadSpecOnArbitrary @[]
    

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

    genvalidity-sydtest Test.Syd.Validity

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

    monoidSpecOnArbitrary @[Int]
    

  10. ordSpecOnArbitrary :: (Show a, Ord a, Typeable a, Arbitrary a) => Spec

    genvalidity-sydtest Test.Syd.Validity

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

    ordSpecOnArbitrary @Int
    

Page 36 of many | Previous | Next