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

    genvalidity-hspec Test.Validity

    No documentation available.

  2. 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-hspec Test.Validity

    No documentation available.

  3. functorSpecOnArbitrary :: forall (f :: Type -> Type) . (Eq (f Int), Show (f Int), Functor f, Typeable f, Arbitrary (f Int)) => Spec

    genvalidity-hspec Test.Validity

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

    functorSpecOnArbitrary @[]
    

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

    genvalidity-hspec Test.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)
    

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

    genvalidity-hspec Test.Validity

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

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

    genvalidity-hspec Test.Validity

    No documentation available.

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

    genvalidity-hspec Test.Validity

    No documentation available.

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

    genvalidity-hspec Test.Validity

    No documentation available.

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

    genvalidity-hspec Test.Validity

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

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

    genvalidity-hspec Test.Validity

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

Page 31 of many | Previous | Next