quickcheck-instances-0.3.33: Common quickcheck instances

Safe Haskell | Safe-Inferred
Language | Haskell2010

Test.QuickCheck.Instances.Strict

Contents

- Orphan instances

# Orphan instances

Arbitrary1 Maybe Source # | Since: 0.3.24
Instance details Methods liftArbitrary :: Gen a -> Gen (Maybe a) Source # liftShrink :: (a -> [a]) -> Maybe a -> [Maybe a] Source #
Arbitrary2 Either Source # | Since: 0.3.24
Instance details Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (Either a b) Source # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> Either a b -> [Either a b] Source #
Arbitrary2 These Source # | Since: 0.3.24
Instance details Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (These a b) Source # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> These a b -> [These a b] Source #
Arbitrary2 Pair Source # | Since: 0.3.24
Instance details Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (Pair a b) Source # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> Pair a b -> [Pair a b] Source #
Arbitrary a => Arbitrary (Maybe a) Source # | Since: 0.3.24
Instance details Methods arbitrary :: Gen (Maybe a) Source # shrink :: Maybe a -> [Maybe a] Source #
Arbitrary a => Arbitrary1 (Either a) Source # | Since: 0.3.24
Instance details Methods liftArbitrary :: Gen a0 -> Gen (Either a a0) Source # liftShrink :: (a0 -> [a0]) -> Either a a0 -> [Either a a0] Source #
Arbitrary a => Arbitrary1 (These a) Source # | Since: 0.3.24
Instance details Methods liftArbitrary :: Gen a0 -> Gen (These a a0) Source # liftShrink :: (a0 -> [a0]) -> These a a0 -> [These a a0] Source #
Arbitrary a => Arbitrary1 (Pair a) Source # | Since: 0.3.24
Instance details Methods liftArbitrary :: Gen a0 -> Gen (Pair a a0) Source # liftShrink :: (a0 -> [a0]) -> Pair a a0 -> [Pair a a0] Source #
CoArbitrary a => CoArbitrary (Maybe a) Source # | Since: 0.3.24
Instance details Methods coarbitrary :: Maybe a -> Gen b -> Gen b Source #
Function a => Function (Maybe a) Source # | Since: 0.3.24
Instance details Methods function :: (Maybe a -> b) -> Maybe a :-> b Source #
(Arbitrary a, Arbitrary b) => Arbitrary (Either a b) Source # | Since: 0.3.24
Instance details Methods arbitrary :: Gen (Either a b) Source # shrink :: Either a b -> [Either a b] Source #
(Arbitrary a, Arbitrary b) => Arbitrary (These a b) Source # | Since: 0.3.24
Instance details Methods arbitrary :: Gen (These a b) Source # shrink :: These a b -> [These a b] Source #
(Arbitrary a, Arbitrary b) => Arbitrary (Pair a b) Source # | Since: 0.3.24
Instance details Methods arbitrary :: Gen (Pair a b) Source # shrink :: Pair a b -> [Pair a b] Source #
(CoArbitrary a, CoArbitrary b) => CoArbitrary (Either a b) Source # | Since: 0.3.24
Instance details Methods coarbitrary :: Either a b -> Gen b0 -> Gen b0 Source #
(CoArbitrary a, CoArbitrary b) => CoArbitrary (These a b) Source # | Since: 0.3.24
Instance details Methods coarbitrary :: These a b -> Gen b0 -> Gen b0 Source #
(CoArbitrary a, CoArbitrary b) => CoArbitrary (Pair a b) Source # | Since: 0.3.24
Instance details Methods coarbitrary :: Pair a b -> Gen b0 -> Gen b0 Source #
(Function a, Function b) => Function (Either a b) Source # | Since: 0.3.24
Instance details Methods function :: (Either a b -> b0) -> Either a b :-> b0 Source #
(Function a, Function b) => Function (These a b) Source # | Since: 0.3.24
Instance details Methods function :: (These a b -> b0) -> These a b :-> b0 Source #
(Function a, Function b) => Function (Pair a b) Source # | Since: 0.3.24
Instance details Methods function :: (Pair a b -> b0) -> Pair a b :-> b0 Source #