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.
-
genvalidity-property Test.Validity.Functions.Inverse No documentation available.
-
genvalidity-property Test.Validity.Functions.Inverse No documentation available.
inverseFunctionsOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> b) -> (b -> a) -> Propertygenvalidity-property Test.Validity.Functions.Inverse id is its own inverse function for every type: prop> inverseFunctionsOnArbitrary id (id :: Int -> Int)
producesValidsOnArbitrary :: (Show a, Show b, Arbitrary a, Validity b) => (a -> b) -> Propertygenvalidity-property Test.Validity.Functions.Validity The function produces valid output when the input is generated by arbitrary
-
genvalidity-property Test.Validity.Functions.Validity No documentation available.
-
genvalidity-property Test.Validity.Functions.Validity No documentation available.
associativeOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> a) -> Propertygenvalidity-property Test.Validity.Operations.Associativity associativeOnArbitrary ((*) :: Int -> Int -> Int)
associativeOnArbitrary ((+) :: Int -> Int -> Int)
commutativeOnArbitrary :: (Show a, Show b, Eq b, Arbitrary a) => (a -> a -> b) -> Propertygenvalidity-property Test.Validity.Operations.Commutativity commutativeOnArbitrary ((+) :: Int -> Int -> Int)
commutativeOnArbitrary ((*) :: Int -> Int -> Int)
commutativeOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> a) -> PropertyidentityOnArbitrary :: (Show a, Eq a, Arbitrary a) => (a -> a -> a) -> a -> Propertygenvalidity-property Test.Validity.Operations.Identity identityOnArbitrary ((*) :: Int -> Int -> Int) 1
identityOnArbitrary ((+) :: Int -> Int -> Int) 0
leftIdentityOnArbitrary :: (Show a, Eq a, Arbitrary a) => (b -> a -> a) -> b -> Propertygenvalidity-property Test.Validity.Operations.Identity leftIdentityOnArbitrary (flip ((^) :: Int -> Int -> Int)) 1