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. equivalentWhenSecondSucceedsOnArbitrary :: (Show a, Arbitrary a, Show b, Eq b, CanFail f) => (a -> b) -> (a -> f b) -> Property

    genvalidity-property Test.Validity.Property

    No documentation available.

  2. equivalentWhenSecondSucceedsOnArbitrary2 :: (Show a, Arbitrary a, Show b, Arbitrary b, Show c, Eq c, CanFail f) => (a -> b -> c) -> (a -> b -> f c) -> Property

    genvalidity-property Test.Validity.Property

    No documentation available.

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

    genvalidity-property Test.Validity.Property

    No documentation available.

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

    genvalidity-property Test.Validity.Property

    No documentation available.

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

    genvalidity-property Test.Validity.Property

    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)
    

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

    genvalidity-property Test.Validity.Property

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

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

    genvalidity-property Test.Validity.Property

    No documentation available.

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

    genvalidity-property Test.Validity.Property

    No documentation available.

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

    genvalidity-property Test.Validity.Property

    No documentation available.

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

    genvalidity-property Test.Validity.Property

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

Page 50 of many | Previous | Next