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. idempotentOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a) -> Property

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

  2. idempotentOnGen :: (Show a, Eq a) => (a -> a) -> Gen a -> (a -> [a]) -> Property

    genvalidity-sydtest Test.Syd.Validity.Property

    No documentation available.

  3. identity :: (Show a, Eq a, GenValid a) => (a -> a -> a) -> a -> Property

    genvalidity-sydtest Test.Syd.Validity.Property

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

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

    genvalidity-sydtest Test.Syd.Validity.Property

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

  5. identityOnGen :: (Show a, Eq a) => (a -> a -> a) -> a -> Gen a -> (a -> [a]) -> Property

    genvalidity-sydtest Test.Syd.Validity.Property

  6. idS :: Selector s s

    hxt Data.Function.Selector

    No documentation available.

  7. idS :: Selector s s

    hxt Text.XML.HXT.Arrow.XmlState.TypeDefs

    No documentation available.

  8. idempotent :: Eq a => (a -> a) -> a -> Bool

    leancheck Test.LeanCheck.Utils.Operators

    Deprecated: Use isIdempotent.

  9. identity :: Eq a => (a -> a) -> a -> Bool

    leancheck Test.LeanCheck.Utils.Operators

    Deprecated: Use isIdentity.

  10. idempotentSemigroupLaws :: (Semigroup a, Eq a, Arbitrary a, Show a) => Proxy a -> Laws

    quickcheck-classes-base Test.QuickCheck.Classes.Base

    Tests the following properties:

    • Idempotent a <> a ≡ a
    Note that this does not test associativity. Make sure to use semigroupLaws in addition to this set of laws. In literature, this class of semigroup is known as a band.

Page 280 of many | Previous | Next