| Safe Haskell | Trustworthy |
|---|---|
| Language | Haskell98 |
Lambdabot.Plugin.Haskell.Eval.Trusted
Documentation
module Math.OEIS
Constructors
| Fun (a :-> b, b, Shrunk) (a -> b) |
Instances
| Applicative Gen | |
| Functor Gen | |
| Monad Gen | |
| MonadFix Gen | |
| Testable prop => Testable (Gen prop) | |
Defined in Test.QuickCheck.Property | |
| STestable prop => STestable (Gen prop) | |
Defined in Test.QuickCheck.Safe | |
chooseEnum :: Enum a => (a, a) -> Gen a #
chooseBoundedIntegral :: (Bounded a, Integral a) => (a, a) -> Gen a #
suchThatMap :: Gen a -> (a -> Maybe b) -> Gen b #
oneof :: HasCallStack => [Gen a] -> Gen a #
elements :: HasCallStack => [a] -> Gen a #
growingElements :: HasCallStack => [a] -> Gen a #
infiniteListOf :: Gen a -> Gen [a] #
class CoArbitrary a where #
Minimal complete definition
Nothing
Methods
coarbitrary :: a -> Gen b -> Gen b #
Instances
class Arbitrary2 (f :: Type -> Type -> Type) where #
Minimal complete definition
Methods
liftArbitrary2 :: Gen a -> Gen b -> Gen (f a b) #
liftShrink2 :: (a -> [a]) -> (b -> [b]) -> f a b -> [f a b] #
Instances
| Arbitrary2 Either | |
Defined in Test.QuickCheck.Arbitrary Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (Either a b) # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> Either a b -> [Either a b] # | |
| Arbitrary2 (,) | |
Defined in Test.QuickCheck.Arbitrary Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (a, b) # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> (a, b) -> [(a, b)] # | |
| Arbitrary2 (Const :: Type -> Type -> Type) | |
Defined in Test.QuickCheck.Arbitrary Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (Const a b) # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> Const a b -> [Const a b] # | |
| Arbitrary2 (Constant :: Type -> Type -> Type) | |
Defined in Test.QuickCheck.Arbitrary Methods liftArbitrary2 :: Gen a -> Gen b -> Gen (Constant a b) # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> Constant a b -> [Constant a b] # | |
class Arbitrary1 (f :: Type -> Type) where #
Minimal complete definition
Instances
Minimal complete definition
Instances
arbitrary1 :: (Arbitrary1 f, Arbitrary a) => Gen (f a) #
shrink1 :: (Arbitrary1 f, Arbitrary a) => f a -> [f a] #
arbitrary2 :: (Arbitrary2 f, Arbitrary a, Arbitrary b) => Gen (f a b) #
shrink2 :: (Arbitrary2 f, Arbitrary a, Arbitrary b) => f a b -> [f a b] #
genericShrink :: (Generic a, RecursivelyShrink (Rep a), GSubterms (Rep a) a) => a -> [a] #
recursivelyShrink :: (Generic a, RecursivelyShrink (Rep a)) => a -> [a] #
shrinkList :: (a -> [a]) -> [a] -> [[a]] #
applyArbitrary2 :: (Arbitrary a, Arbitrary b) => (a -> b -> r) -> Gen r #
applyArbitrary4 :: (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d) => (a -> b -> c -> d -> r) -> Gen r #
arbitrarySizedIntegral :: Integral a => Gen a #
arbitrarySizedNatural :: Integral a => Gen a #
arbitrarySizedFractional :: Fractional a => Gen a #
arbitraryBoundedIntegral :: (Bounded a, Integral a) => Gen a #
arbitraryBoundedRandom :: (Bounded a, Random a) => Gen a #
arbitraryBoundedEnum :: (Bounded a, Enum a) => Gen a #
arbitrarySizedBoundedIntegral :: (Bounded a, Integral a) => Gen a #
shrinkNothing :: a -> [a] #
shrinkMapBy :: (a -> b) -> (b -> a) -> (a -> [a]) -> b -> [b] #
shrinkIntegral :: Integral a => a -> [a] #
shrinkBoundedEnum :: (Bounded a, Enum a, Eq a) => a -> [a] #
shrinkRealFrac :: RealFrac a => a -> [a] #
shrinkDecimal :: RealFrac a => a -> [a] #
coarbitraryIntegral :: Integral a => a -> Gen b -> Gen b #
coarbitraryReal :: Real a => a -> Gen b -> Gen b #
coarbitraryShow :: Show a => a -> Gen b -> Gen b #
coarbitraryEnum :: Enum a => a -> Gen b -> Gen b #
orderedList :: (Ord a, Arbitrary a) => Gen [a] #
infiniteList :: Arbitrary a => Gen [a] #
newtype PrintableString #
Constructors
| PrintableString | |
Fields | |
Instances
| Arbitrary PrintableString | |
Defined in Test.QuickCheck.Modifiers | |
| Read PrintableString | |
Defined in Test.QuickCheck.Modifiers | |
| Show PrintableString | |
Defined in Test.QuickCheck.Modifiers | |
| Eq PrintableString | |
Defined in Test.QuickCheck.Modifiers Methods (==) :: PrintableString -> PrintableString -> Bool Source # (/=) :: PrintableString -> PrintableString -> Bool Source # | |
| Ord PrintableString | |
Defined in Test.QuickCheck.Modifiers Methods compare :: PrintableString -> PrintableString -> Ordering Source # (<) :: PrintableString -> PrintableString -> Bool Source # (<=) :: PrintableString -> PrintableString -> Bool Source # (>) :: PrintableString -> PrintableString -> Bool Source # (>=) :: PrintableString -> PrintableString -> Bool Source # max :: PrintableString -> PrintableString -> PrintableString Source # min :: PrintableString -> PrintableString -> PrintableString Source # | |
newtype UnicodeString #
Constructors
| UnicodeString | |
Fields | |
Instances
| Arbitrary UnicodeString | |
Defined in Test.QuickCheck.Modifiers | |
| Read UnicodeString | |
Defined in Test.QuickCheck.Modifiers | |
| Show UnicodeString | |
Defined in Test.QuickCheck.Modifiers | |
| Eq UnicodeString | |
Defined in Test.QuickCheck.Modifiers Methods (==) :: UnicodeString -> UnicodeString -> Bool Source # (/=) :: UnicodeString -> UnicodeString -> Bool Source # | |
| Ord UnicodeString | |
Defined in Test.QuickCheck.Modifiers Methods compare :: UnicodeString -> UnicodeString -> Ordering Source # (<) :: UnicodeString -> UnicodeString -> Bool Source # (<=) :: UnicodeString -> UnicodeString -> Bool Source # (>) :: UnicodeString -> UnicodeString -> Bool Source # (>=) :: UnicodeString -> UnicodeString -> Bool Source # max :: UnicodeString -> UnicodeString -> UnicodeString Source # min :: UnicodeString -> UnicodeString -> UnicodeString Source # | |
newtype ASCIIString #
Constructors
| ASCIIString | |
Fields | |
Instances
| Arbitrary ASCIIString | |
Defined in Test.QuickCheck.Modifiers | |
| Read ASCIIString | |
Defined in Test.QuickCheck.Modifiers | |
| Show ASCIIString | |
Defined in Test.QuickCheck.Modifiers | |
| Eq ASCIIString | |
Defined in Test.QuickCheck.Modifiers Methods (==) :: ASCIIString -> ASCIIString -> Bool Source # (/=) :: ASCIIString -> ASCIIString -> Bool Source # | |
| Ord ASCIIString | |
Defined in Test.QuickCheck.Modifiers Methods compare :: ASCIIString -> ASCIIString -> Ordering Source # (<) :: ASCIIString -> ASCIIString -> Bool Source # (<=) :: ASCIIString -> ASCIIString -> Bool Source # (>) :: ASCIIString -> ASCIIString -> Bool Source # (>=) :: ASCIIString -> ASCIIString -> Bool Source # max :: ASCIIString -> ASCIIString -> ASCIIString Source # min :: ASCIIString -> ASCIIString -> ASCIIString Source # | |
class ShrinkState s a where #
Constructors
| Shrinking s a |
Constructors
| Shrink2 | |
Fields
| |
Instances
Instances
Instances
newtype NonPositive a #
Constructors
| NonPositive | |
Fields
| |
Instances
newtype NonNegative a #
Constructors
| NonNegative | |
Fields
| |
Instances
Constructors
| NonZero | |
Fields
| |
Instances
| Functor NonZero | |
| (Num a, Eq a, Arbitrary a) => Arbitrary (NonZero a) | |
| Enum a => Enum (NonZero a) | |
Defined in Test.QuickCheck.Modifiers Methods succ :: NonZero a -> NonZero a Source # pred :: NonZero a -> NonZero a Source # toEnum :: Int -> NonZero a Source # fromEnum :: NonZero a -> Int Source # enumFrom :: NonZero a -> [NonZero a] Source # enumFromThen :: NonZero a -> NonZero a -> [NonZero a] Source # enumFromTo :: NonZero a -> NonZero a -> [NonZero a] Source # enumFromThenTo :: NonZero a -> NonZero a -> NonZero a -> [NonZero a] Source # | |
| Read a => Read (NonZero a) | |
| Show a => Show (NonZero a) | |
| Eq a => Eq (NonZero a) | |
| Ord a => Ord (NonZero a) | |
Defined in Test.QuickCheck.Modifiers | |
Constructors
| Negative | |
Fields
| |
Instances
| Functor Negative | |
| (Num a, Ord a, Arbitrary a) => Arbitrary (Negative a) | |
| Enum a => Enum (Negative a) | |
Defined in Test.QuickCheck.Modifiers Methods succ :: Negative a -> Negative a Source # pred :: Negative a -> Negative a Source # toEnum :: Int -> Negative a Source # fromEnum :: Negative a -> Int Source # enumFrom :: Negative a -> [Negative a] Source # enumFromThen :: Negative a -> Negative a -> [Negative a] Source # enumFromTo :: Negative a -> Negative a -> [Negative a] Source # enumFromThenTo :: Negative a -> Negative a -> Negative a -> [Negative a] Source # | |
| Read a => Read (Negative a) | |
| Show a => Show (Negative a) | |
| Eq a => Eq (Negative a) | |
| Ord a => Ord (Negative a) | |
Defined in Test.QuickCheck.Modifiers Methods compare :: Negative a -> Negative a -> Ordering Source # (<) :: Negative a -> Negative a -> Bool Source # (<=) :: Negative a -> Negative a -> Bool Source # (>) :: Negative a -> Negative a -> Bool Source # (>=) :: Negative a -> Negative a -> Bool Source # | |
Constructors
| Positive | |
Fields
| |
Instances
| Functor Positive | |
| (Num a, Ord a, Arbitrary a) => Arbitrary (Positive a) | |
| Enum a => Enum (Positive a) | |
Defined in Test.QuickCheck.Modifiers Methods succ :: Positive a -> Positive a Source # pred :: Positive a -> Positive a Source # toEnum :: Int -> Positive a Source # fromEnum :: Positive a -> Int Source # enumFrom :: Positive a -> [Positive a] Source # enumFromThen :: Positive a -> Positive a -> [Positive a] Source # enumFromTo :: Positive a -> Positive a -> [Positive a] Source # enumFromThenTo :: Positive a -> Positive a -> Positive a -> [Positive a] Source # | |
| Read a => Read (Positive a) | |
| Show a => Show (Positive a) | |
| Eq a => Eq (Positive a) | |
| Ord a => Ord (Positive a) | |
Defined in Test.QuickCheck.Modifiers Methods compare :: Positive a -> Positive a -> Ordering Source # (<) :: Positive a -> Positive a -> Bool Source # (<=) :: Positive a -> Positive a -> Bool Source # (>) :: Positive a -> Positive a -> Bool Source # (>=) :: Positive a -> Positive a -> Bool Source # | |
newtype SortedList a #
Instances
data InfiniteList a #
Constructors
| InfiniteList | |
Fields
| |
Instances
| Arbitrary a => Arbitrary (InfiniteList a) | |
Defined in Test.QuickCheck.Modifiers | |
| Show a => Show (InfiniteList a) | |
Defined in Test.QuickCheck.Modifiers | |
newtype NonEmptyList a #
Constructors
| NonEmpty | |
Fields
| |
Instances
newtype OrderedList a #
Constructors
| Ordered | |
Fields
| |
Instances
Instances
Instances
Minimal complete definition
Nothing
Instances
functionBoundedEnum :: (Eq a, Bounded a, Enum a) => (a -> b) -> a :-> b #
functionRealFrac :: RealFrac a => (a -> b) -> a :-> b #
functionIntegral :: Integral a => (a -> b) -> a :-> b #
functionShow :: (Show a, Read a) => (a -> c) -> a :-> c #
functionVoid :: (forall b. void -> b) -> void :-> c #
functionMap :: Function b => (a -> b) -> (b -> a) -> (a -> c) -> a :-> c #
Constructors
| Discard |
Instances
| Testable Discard | |
Defined in Test.QuickCheck.Property | |
ioProperty :: Testable prop => IO prop -> Property #
idempotentIOProperty :: Testable prop => IO prop -> Property #
coerceWitness :: Typeable a => Witness -> a #
castWitness :: Typeable a => Witness -> Maybe a #
noShrinking :: STestable prop => prop -> SProperty #
verboseShrinking :: Testable prop => prop -> Property #
withMaxSuccess :: Testable prop => Int -> prop -> Property #
withDiscardRatio :: Testable prop => Int -> prop -> Property #
withMaxShrinks :: Testable prop => Int -> prop -> Property #
withMaxSize :: Testable prop => Int -> prop -> Property #
checkCoverage :: Testable prop => prop -> Property #
checkCoverageWith :: Testable prop => Confidence -> prop -> Property #
coverTable :: Testable prop => String -> [(String, Double)] -> prop -> Property #
discardAfter :: Testable prop => Int -> prop -> Property #
forAllShow :: Testable prop => Gen a -> (a -> String) -> (a -> prop) -> Property #
forAllBlind :: Testable prop => Gen a -> (a -> prop) -> Property #
forAllShrink :: (Show a, STestable prop) => Gen a -> (a -> [a]) -> (a -> prop) -> SProperty #
forAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> String) -> (a -> prop) -> Property #
forAllShrinkBlind :: Testable prop => Gen a -> (a -> [a]) -> (a -> prop) -> Property #
Constructors
| Success | |
| GaveUp | |
| Failure | |
Fields
| |
| NoExpectedFailure | |
Constructors
| Args | |
Fields
| |
quickCheck :: STestable prop => QCGen -> prop -> String #
quickCheckWith :: STestable prop => Args -> QCGen -> prop -> String #
quickCheckResult :: STestable prop => QCGen -> prop -> Result #
quickCheckWithResult :: STestable prop => Args -> QCGen -> prop -> Result #
verboseCheck :: Testable prop => prop -> IO () #
verboseCheckWith :: Testable prop => Args -> prop -> IO () #
verboseCheckResult :: Testable prop => prop -> IO Result #
verboseCheckWithResult :: Testable prop => Args -> prop -> IO Result #
polyQuickCheck :: Name -> ExpQ #
polyVerboseCheck :: Name -> ExpQ #
monomorphic :: Name -> ExpQ #
forAllProperties :: Q Exp #
allProperties :: Q Exp #
quickCheckAll :: Q Exp #
verboseCheckAll :: Q Exp #
labelledExamples :: Testable prop => prop -> IO () #
labelledExamplesWith :: Testable prop => Args -> prop -> IO () #
labelledExamplesResult :: Testable prop => prop -> IO Result #
labelledExamplesWithResult :: Testable prop => Args -> prop -> IO Result #
inventQCGen :: a -> QCGen #
Minimal complete definition
sProperty
Instances
| STestable SProperty | |
Defined in Test.QuickCheck.Safe Methods sProperty :: SProperty -> SProperty | |
| STestable Bool | |
Defined in Test.QuickCheck.Safe | |
| STestable prop => STestable (Gen prop) | |
Defined in Test.QuickCheck.Safe | |
| (Arbitrary a, Show a, STestable prop) => STestable (a -> prop) | |
Defined in Test.QuickCheck.Safe Methods sProperty :: (a -> prop) -> SProperty | |
myquickcheck :: STestable prop => prop -> String Source #