Community
Modules 18

Test.QuickCheck.Arbitrary

Type classes for random generation of values.

Note: the contents of this module are re-exported by Test.QuickCheck. You do not need to import it directly.

8 generation diagnostics
  • unattached documentation comment at 225:1
  • unattached documentation comment at 1335:1
  • unattached documentation comment at 1439:1
  • unattached documentation comment at 1459:1
  • unattached documentation comment at 1563:1
  • unattached documentation comment at 1908:1
  • unattached documentation comment at 1927:1
  • unattached documentation comment at 1945:1

Arbitrary and CoArbitrary classes

class Arbitrary a

Random generation and shrinking of values.

QuickCheck provides Arbitrary instances for most types in base, except those which incur extra dependencies. For a wider range of Arbitrary instances see the quickcheck-instances package.

arbitrary :: Gen a

A generator for values of the given type.

It is worth spending time thinking about what sort of test data you want - good generators are often the difference between finding bugs and not finding them. You can use sample, label and classify to check the quality of your test data.

There is no generic arbitrary implementation included because we don't know how to make a high-quality one. If you want one, consider using the testing-feat or generic-random packages.

The QuickCheck manual goes into detail on how to write good generators. Make sure to look at it, especially if your type is recursive!

shrink :: a -> [a]

Produces a (possibly) empty list of all the possible immediate shrinks of the given value.

The default implementation returns the empty list, so will not try to shrink the value. If your data type has no special invariants, you can enable shrinking by defining shrink = genericShrink, but by customising the behaviour of shrink you can often get simpler counterexamples.

Most implementations of shrink should try at least three things:

  1. Shrink a term to any of its immediate subterms. You can use subterms to do this.

  1. Recursively apply shrink to all immediate subterms. You can use recursivelyShrink to do this.

  1. Type-specific shrinkings such as replacing a constructor by a simpler constructor.

For example, suppose we have the following implementation of binary trees:

data Tree a = Nil | Branch a (Tree a) (Tree a)

We can then define shrink as follows:

shrink Nil = []
shrink (Branch x l r) =
  -- shrink Branch to Nil
  [Nil] ++
  -- shrink to non-Nil subterms
  [t | t@Branch{} <- [l, r]] ++
  -- recursively shrink subterms
  [Branch x' l' r' | (x', l', r') <- shrink (x, l, r)]

There are a couple of subtleties here:

  • QuickCheck tries the shrinking candidates in the order they appear in the list, so we put more aggressive shrinking steps (such as replacing the whole tree by Nil) before smaller ones (such as recursively shrinking the subtrees).

  • It is tempting to write the last line as [Branch x' l' r' | x' <- shrink x, l' <- shrink l, r' <- shrink r] but this is the wrong thing! It will force QuickCheck to shrink x, l and r in tandem, and shrinking will stop once one of the three is fully shrunk.

There is a fair bit of boilerplate in the code above. We can avoid it with the help of some generic functions. The function genericShrink tries shrinking a term to all of its subterms and, failing that, recursively shrinks the subterms. Using it, we can define shrink as:

shrink x = shrinkToNil x ++ genericShrink x
  where
    shrinkToNil Nil = []
    shrinkToNil (Branch _ l r) = [Nil]

genericShrink is a combination of subterms, which shrinks a term to any of its subterms, and recursivelyShrink, which shrinks all subterms of a term. These may be useful if you need a bit more control over shrinking than genericShrink gives you.

A final gotcha: we cannot define shrink as simply shrink x = Nil:genericShrink x as this shrinks Nil to Nil, and shrinking will go into an infinite loop.

If all this leaves you bewildered, you might try shrink = genericShrink to begin with, after deriving Generic for your type. However, if your data type has any special invariants, you will need to check that genericShrink can't break those invariants.

class CoArbitrary a

Used for random generation of functions. You should consider using Fun instead, which can show the generated functions as strings.

If you are using a recent GHC, there is a default definition of coarbitrary using genericCoarbitrary, so if your type has a Generic instance it's enough to say

instance CoArbitrary MyType

You should only use genericCoarbitrary for data types where equality is structural, i.e. if you can't have two different representations of the same value. An example where it's not safe is sets implemented using binary search trees: the same set can be represented as several different trees. Here you would have to explicitly define coarbitrary s = coarbitrary (toList s).

coarbitrary :: a -> Gen b -> Gen b

Used to generate a function of type a -> b. The first argument is a value, the second a generator. You should use variant to perturb the random generator; the goal is that different values for the first argument will lead to different calls to variant. An example will help:

instance CoArbitrary a => CoArbitrary [a] where
  coarbitrary []     = 'variant' 0
  coarbitrary (x:xs) = 'variant' 1 . coarbitrary (x,xs)

Unary and Binary classes

arbitrary1 :: (Arbitrary1 f, Arbitrary a) => Gen (f a)

shrink1 :: (Arbitrary1 f, Arbitrary a) => f a -> [f a]

class Arbitrary2 f

Lifting of the Arbitrary class to binary type constructors.

liftShrink2 :: (a -> [a]) -> (b -> [b]) -> f a b -> [f a b]

arbitrary2 :: (Arbitrary2 f, Arbitrary a, Arbitrary b) => Gen (f a b)

shrink2 :: (Arbitrary2 f, Arbitrary a, Arbitrary b) => f a b -> [f a b]

Helper functions for implementing arbitrary

applyArbitrary2 :: (Arbitrary a, Arbitrary b) => (a -> b -> r) -> Gen r

Apply a binary function to random arguments.

applyArbitrary3 :: (Arbitrary a, Arbitrary b, Arbitrary c) => (a -> b -> c -> r) -> Gen r

Apply a ternary function to random arguments.

applyArbitrary4 :: (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d) => (a -> b -> c -> d -> r) -> Gen r

Apply a function of arity 4 to random arguments.

arbitrarySizedIntegral :: Integral a => Gen a

Generates an integral number. The number can be positive or negative and its maximum absolute value depends on the size parameter.

arbitrarySizedNatural :: Integral a => Gen a

Generates a natural number. The number's maximum value depends on the size parameter.

arbitraryBoundedIntegral :: (Bounded a, Integral a) => Gen a

Generates an integral number. The number is chosen uniformly from the entire range of the type. You may want to use arbitrarySizedBoundedIntegral instead.

arbitrarySizedBoundedIntegral :: (Bounded a, Integral a) => Gen a

Generates an integral number from a bounded domain. The number is chosen from the entire range of the type, but small numbers are generated more often than big numbers. Inspired by demands from Phil Wadler.

arbitrarySizedFractional :: Fractional a => Gen a

Uniformly generates a fractional number. The number can be positive or negative and its maximum absolute value depends on the size parameter.

arbitraryBoundedRandom :: (Bounded a, Random a) => Gen a

Generates an element of a bounded type. The element is chosen from the entire range of the type.

arbitraryBoundedEnum :: (Bounded a, Enum a) => Gen a

Generates an element of a bounded enumeration.

Generators for various kinds of character

Helper functions for implementing shrink

genericShrink :: (Generic a, RecursivelyShrink (Rep a), GSubterms (Rep a) a) => a -> [a]

Shrink a term to any of its immediate subterms, and also recursively shrink all subterms.

subterms :: (Generic a, GSubterms (Rep a) a) => a -> [a]

All immediate subterms of a term.

recursivelyShrink :: (Generic a, RecursivelyShrink (Rep a)) => a -> [a]

Recursively shrink all immediate subterms.

genericCoarbitrary :: (Generic a, GCoArbitrary (Rep a)) => a -> Gen b -> Gen b

Generic CoArbitrary implementation.

shrinkList :: (a -> [a]) -> [a] -> [[a]]

Shrink a list of values given a shrinking function for individual values.

shrinkMap :: Arbitrary a => (a -> b) -> (b -> a) -> b -> [b]

Map a shrink function to another domain. This is handy if your data type has special invariants, but is almost isomorphic to some other type.

shrinkOrderedList :: (Ord a, Arbitrary a) => [a] -> [[a]]
shrinkOrderedList = shrinkMap sort id

shrinkSet :: (Ord a, Arbitrary a) => Set a -> [Set a]
shrinkSet = shrinkMap fromList toList

shrinkMapBy :: (a -> b) -> (b -> a) -> (a -> [a]) -> b -> [b]

Non-overloaded version of `shrinkMap`.

shrinkRealFrac :: RealFrac a => a -> [a]

Shrink a fraction, preferring numbers with smaller numerators or denominators. See also shrinkDecimal.

shrinkBoundedEnum :: (Bounded a, Enum a, Eq a) => a -> [a]

Shrink an element of a bounded enumeration.

Example

data MyEnum = E0 | E1 | E2 | E3 | E4 | E5 | E6 | E7 | E8 | E9
   deriving (Bounded, Enum, Eq, Ord, Show)



shrinkDecimal :: RealFrac a => a -> [a]

Shrink a real number, preferring numbers with shorter decimal representations. See also shrinkRealFrac.

Helper functions for implementing coarbitrary

coarbitraryIntegral :: Integral a => a -> Gen b -> Gen b

A coarbitrary implementation for integral numbers.

coarbitraryReal :: Real a => a -> Gen b -> Gen b

A coarbitrary implementation for real numbers.

coarbitraryShow :: Show a => a -> Gen b -> Gen b

coarbitrary helper for lazy people :-).

coarbitraryEnum :: Enum a => a -> Gen b -> Gen b

A coarbitrary implementation for enums.

(><) :: (Gen a -> Gen a) -> (Gen a -> Gen a) -> (Gen a -> Gen a)

Use ordinary function composition instead

Combine two generator perturbing functions, for example the results of calls to variant or coarbitrary.

Generators which use arbitrary

vector :: Arbitrary a => Int -> Gen [a]

Generates a list of a given length.

orderedList :: (Ord a, Arbitrary a) => Gen [a]

Generates an ordered list.

infiniteList :: Arbitrary a => Gen [a]

Generates an infinite list.

Instances

236
  • instance (RecursivelyShrink f, RecursivelyShrink g) => RecursivelyShrink (f :*: g)
  • instance (RecursivelyShrink f, RecursivelyShrink g) => RecursivelyShrink (f :+: g)
  • instance RecursivelyShrink f => RecursivelyShrink (M1 i c f)
  • instance Arbitrary a => RecursivelyShrink (K1 i a)
  • instance RecursivelyShrink U1
  • instance RecursivelyShrink V1
  • instance GSubterms V1 a
  • instance GSubterms U1 a
  • instance (GSubtermsIncl f a, GSubtermsIncl g a) => GSubterms (f :*: g) a
  • instance (GSubtermsIncl f a, GSubtermsIncl g a) => GSubterms (f :+: g) a
  • instance GSubterms f a => GSubterms (M1 i c f) a
  • instance GSubterms (K1 i a) b
  • instance GSubtermsIncl V1 a
  • instance GSubtermsIncl U1 a
  • instance (GSubtermsIncl f a, GSubtermsIncl g a) => GSubtermsIncl (f :*: g) a
  • instance (GSubtermsIncl f a, GSubtermsIncl g a) => GSubtermsIncl (f :+: g) a
  • instance GSubtermsIncl f a => GSubtermsIncl (M1 i c f) a
  • instance GSubtermsIncl (K1 i a) a
  • instance GSubtermsIncl (K1 i a) b
  • instance (CoArbitrary a) => Arbitrary1 ((->) a)
  • instance (CoArbitrary a, Arbitrary b) => Arbitrary (a -> b)
  • instance Arbitrary ()
  • instance Arbitrary Bool
  • instance Arbitrary Ordering
  • instance Arbitrary1 Maybe
  • instance Arbitrary a => Arbitrary (Maybe a)
  • instance Arbitrary2 Either
  • instance Arbitrary a => Arbitrary1 (Either a)
  • instance (Arbitrary a, Arbitrary b) => Arbitrary (Either a b)
  • instance Arbitrary1 []
  • instance Arbitrary a => Arbitrary [a]
  • instance Arbitrary1 NonEmpty
  • instance Arbitrary a => Arbitrary (NonEmpty a)
  • instance Integral a => Arbitrary (Ratio a)
  • instance Arbitrary a => Arbitrary (Complex a)
  • instance HasResolution a => Arbitrary (Fixed a)
  • instance Arbitrary2 (,)
  • instance (Arbitrary a) => Arbitrary1 ((,) a)
  • instance (Arbitrary a, Arbitrary b) => Arbitrary (a, b)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c) => Arbitrary (a, b, c)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d) => Arbitrary (a, b, c, d)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e) => Arbitrary (a, b, c, d, e)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f) => Arbitrary (a, b, c, d, e, f)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f, Arbitrary g) => Arbitrary (a, b, c, d, e, f, g)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f, Arbitrary g, Arbitrary h) => Arbitrary (a, b, c, d, e, f, g, h)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f, Arbitrary g, Arbitrary h, Arbitrary i) => Arbitrary (a, b, c, d, e, f, g, h, i)
  • instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f, Arbitrary g, Arbitrary h, Arbitrary i, Arbitrary j) => Arbitrary (a, b, c, d, e, f, g, h, i, j)
  • instance Arbitrary Integer
  • instance Arbitrary Natural
  • instance Arbitrary Int
  • instance Arbitrary Int8
  • instance Arbitrary Int16
  • instance Arbitrary Int32
  • instance Arbitrary Int64
  • instance Arbitrary Word
  • instance Arbitrary Word8
  • instance Arbitrary Word16
  • instance Arbitrary Word32
  • instance Arbitrary Word64
  • instance Arbitrary Char
  • instance Arbitrary Float
  • instance Arbitrary Double
  • instance Arbitrary CChar
  • instance Arbitrary CSChar
  • instance Arbitrary CUChar
  • instance Arbitrary CShort
  • instance Arbitrary CUShort
  • instance Arbitrary CInt
  • instance Arbitrary CUInt
  • instance Arbitrary CLong
  • instance Arbitrary CULong
  • instance Arbitrary CPtrdiff
  • instance Arbitrary CSize
  • instance Arbitrary CWchar
  • instance Arbitrary CSigAtomic
  • instance Arbitrary CLLong
  • instance Arbitrary CULLong
  • instance Arbitrary CIntPtr
  • instance Arbitrary CUIntPtr
  • instance Arbitrary CIntMax
  • instance Arbitrary CUIntMax
  • instance Arbitrary CClock
  • instance Arbitrary CTime
  • instance Arbitrary CUSeconds
  • instance Arbitrary CSUSeconds
  • instance Arbitrary CFloat
  • instance Arbitrary CDouble
  • instance (Ord a, Arbitrary a) => Arbitrary (Set.Set a)

    WARNING: Users working on the internals of the Set type via e.g. Data.Set.Internal should be aware that this instance aims to give a good representation of Set a as mathematical sets but *does not* aim to provide a varied distribution over the underlying representation.

  • instance (Ord k, Arbitrary k) => Arbitrary1 (Map.Map k)
  • instance (Ord k, Arbitrary k, Arbitrary v) => Arbitrary (Map.Map k v)

    WARNING: The same warning as for Arbitrary (Set a) applies here.

  • instance Arbitrary IntSet.IntSet

    WARNING: The same warning as for Arbitrary (Set a) applies here.

  • instance Arbitrary1 IntMap.IntMap

    WARNING: The same warning as for Arbitrary (Set a) applies here.

  • instance Arbitrary a => Arbitrary (IntMap.IntMap a)

    WARNING: The same warning as for Arbitrary (Set a) applies here.

  • instance Arbitrary1 Sequence.Seq
  • instance Arbitrary a => Arbitrary (Sequence.Seq a)

    WARNING: The same warning as for Arbitrary (Set a) applies here.

  • instance Arbitrary1 Tree.Tree
  • instance Arbitrary a => Arbitrary (Tree.Tree a)
  • instance Arbitrary1 ZipList
  • instance Arbitrary a => Arbitrary (ZipList a)
  • instance Arbitrary1 Identity
  • instance Arbitrary a => Arbitrary (Identity a)
  • instance Arbitrary2 Constant
  • instance Arbitrary a => Arbitrary1 (Constant a)
  • instance Arbitrary a => Arbitrary (Constant a b)
  • instance (Arbitrary1 f, Arbitrary1 g) => Arbitrary1 (Product f g)
  • instance (Arbitrary1 f, Arbitrary1 g, Arbitrary a) => Arbitrary (Product f g a)
  • instance (Arbitrary1 f, Arbitrary1 g) => Arbitrary1 (Compose f g)
  • instance (Arbitrary1 f, Arbitrary1 g, Arbitrary a) => Arbitrary (Compose f g a)
  • instance Arbitrary2 Const
  • instance Arbitrary a => Arbitrary1 (Const a)
  • instance Arbitrary a => Arbitrary (Const a b)
  • instance Arbitrary (m a) => Arbitrary (WrappedMonad m a)
  • instance Arbitrary (a b c) => Arbitrary (WrappedArrow a b c)
  • instance Arbitrary a => Arbitrary (Monoid.Dual a)
  • instance (Arbitrary a, CoArbitrary a) => Arbitrary (Monoid.Endo a)
  • instance Arbitrary Monoid.All
  • instance Arbitrary Monoid.Any
  • instance Arbitrary a => Arbitrary (Monoid.Sum a)
  • instance Arbitrary a => Arbitrary (Monoid.Product a)
  • instance Arbitrary a => Arbitrary (Monoid.First a)
  • instance Arbitrary a => Arbitrary (Monoid.Last a)
  • instance Arbitrary (f a) => Arbitrary (Monoid.Alt f a)
  • instance Arbitrary a => Arbitrary (Semigroup.Min a)
  • instance Arbitrary a => Arbitrary (Semigroup.Max a)
  • instance Arbitrary a => Arbitrary (Semigroup.First a)
  • instance Arbitrary a => Arbitrary (Semigroup.Last a)
  • instance (Arbitrary a, Arbitrary b) => Arbitrary (Semigroup.Arg a b)
  • instance Arbitrary a => Arbitrary (Semigroup.WrappedMonoid a)
  • instance Arbitrary a => Arbitrary (Iff a)
  • instance Arbitrary a => Arbitrary (Ior a)
  • instance Arbitrary a => Arbitrary (Xor a)
  • instance Arbitrary a => Arbitrary (And a)
  • instance CoArbitrary a => CoArbitrary (And a)
  • instance CoArbitrary a => CoArbitrary (Iff a)
  • instance CoArbitrary a => CoArbitrary (Ior a)
  • instance CoArbitrary a => CoArbitrary (Xor a)
  • instance Arbitrary ByteArray
  • instance CoArbitrary ByteArray
  • instance Arbitrary a => Arbitrary (Solo a)
  • instance CoArbitrary a => CoArbitrary (Solo a)
  • instance Arbitrary a => Arbitrary (Down a)
  • instance CoArbitrary a => CoArbitrary (Down a)
  • instance Arbitrary a => Arbitrary (ArgDescr a)
  • instance Arbitrary a => Arbitrary (ArgOrder a)
  • instance Arbitrary a => Arbitrary (OptDescr a)
  • instance CoArbitrary a => Arbitrary (Predicate a)
  • instance (Arbitrary a, CoArbitrary b) => Arbitrary (Op a b)
  • instance CoArbitrary a => Arbitrary (Equivalence a)
  • instance CoArbitrary a => Arbitrary (Comparison a)
  • instance Arbitrary Version

    Generates Version with non-empty non-negative versionBranch, and empty versionTags

  • instance Arbitrary QCGen
  • instance Arbitrary ExitCode
  • instance Arbitrary Newline
  • instance Arbitrary NewlineMode
  • instance Arbitrary GeneralCategory
  • instance Arbitrary SeekMode
  • instance Arbitrary TextEncoding
  • instance Arbitrary BufferMode
  • instance Arbitrary IOMode
  • instance Arbitrary FormatSign
  • instance Arbitrary FormatAdjustment
  • instance Arbitrary FormatParse
  • instance Arbitrary FieldFormat
  • instance GCoArbitrary U1
  • instance (GCoArbitrary f, GCoArbitrary g) => GCoArbitrary (f :*: g)
  • instance (GCoArbitrary f, GCoArbitrary g) => GCoArbitrary (f :+: g)
  • instance GCoArbitrary f => GCoArbitrary (M1 i c f)
  • instance CoArbitrary a => GCoArbitrary (K1 i a)
  • instance (Arbitrary a, CoArbitrary b) => CoArbitrary (a -> b)
  • instance CoArbitrary ()
  • instance CoArbitrary Bool
  • instance CoArbitrary Ordering
  • instance CoArbitrary a => CoArbitrary (Maybe a)
  • instance (CoArbitrary a, CoArbitrary b) => CoArbitrary (Either a b)
  • instance CoArbitrary a => CoArbitrary [a]
  • instance (Integral a, CoArbitrary a) => CoArbitrary (Ratio a)
  • instance HasResolution a => CoArbitrary (Fixed a)
  • instance CoArbitrary a => CoArbitrary (Complex a)
  • instance (CoArbitrary a, CoArbitrary b) => CoArbitrary (a, b)
  • instance (CoArbitrary a, CoArbitrary b, CoArbitrary c) => CoArbitrary (a, b, c)
  • instance (CoArbitrary a, CoArbitrary b, CoArbitrary c, CoArbitrary d) => CoArbitrary (a, b, c, d)
  • instance (CoArbitrary a, CoArbitrary b, CoArbitrary c, CoArbitrary d, CoArbitrary e) => CoArbitrary (a, b, c, d, e)
  • instance CoArbitrary Integer
  • instance CoArbitrary Int
  • instance CoArbitrary Int8
  • instance CoArbitrary Int16
  • instance CoArbitrary Int32
  • instance CoArbitrary Int64
  • instance CoArbitrary Word
  • instance CoArbitrary Word8
  • instance CoArbitrary Word16
  • instance CoArbitrary Word32
  • instance CoArbitrary Word64
  • instance CoArbitrary Char
  • instance CoArbitrary Float
  • instance CoArbitrary Double
  • instance CoArbitrary Natural
  • instance CoArbitrary a => CoArbitrary (Set.Set a)
  • instance (CoArbitrary k, CoArbitrary v) => CoArbitrary (Map.Map k v)
  • instance CoArbitrary IntSet.IntSet
  • instance CoArbitrary a => CoArbitrary (IntMap.IntMap a)
  • instance CoArbitrary a => CoArbitrary (Sequence.Seq a)
  • instance CoArbitrary a => CoArbitrary (Tree.Tree a)
  • instance CoArbitrary a => CoArbitrary (ZipList a)
  • instance CoArbitrary a => CoArbitrary (NonEmpty a)
  • instance CoArbitrary a => CoArbitrary (Identity a)
  • instance CoArbitrary a => CoArbitrary (Constant a b)
  • instance CoArbitrary a => CoArbitrary (Const a b)
  • instance CoArbitrary a => CoArbitrary (Monoid.Dual a)
  • instance (Arbitrary a, CoArbitrary a) => CoArbitrary (Monoid.Endo a)
  • instance CoArbitrary Monoid.All
  • instance CoArbitrary Monoid.Any
  • instance CoArbitrary a => CoArbitrary (Monoid.Sum a)
  • instance CoArbitrary a => CoArbitrary (Monoid.Product a)
  • instance CoArbitrary a => CoArbitrary (Monoid.First a)
  • instance CoArbitrary a => CoArbitrary (Monoid.Last a)
  • instance CoArbitrary (f a) => CoArbitrary (Monoid.Alt f a)
  • instance CoArbitrary a => CoArbitrary (Semigroup.Max a)
  • instance CoArbitrary a => CoArbitrary (Semigroup.Min a)
  • instance CoArbitrary a => CoArbitrary (Semigroup.First a)
  • instance CoArbitrary a => CoArbitrary (Semigroup.Last a)
  • instance CoArbitrary Newline
  • instance CoArbitrary NewlineMode
  • instance (CoArbitrary a, CoArbitrary b) => CoArbitrary (Semigroup.Arg a b)
  • instance CoArbitrary GeneralCategory
  • instance CoArbitrary SeekMode
  • instance CoArbitrary IOMode
  • instance CoArbitrary FieldFormat
  • instance CoArbitrary FormatParse
  • instance CoArbitrary FormatAdjustment
  • instance CoArbitrary FormatSign
  • instance CoArbitrary BufferMode
  • instance CoArbitrary ExitCode
  • instance CoArbitrary TextEncoding
  • instance CoArbitrary a => CoArbitrary (Semigroup.WrappedMonoid a)
  • instance CoArbitrary Version
Build record and source files

Community contribution. The service has not verified this documentation. The generator reported 30 diagnostics.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-aa6debbd-web-3

Metadata snapshot: f17ab6aeb2a7b6daf9fba7614097e138beeef85fa92c3fb7fdfed9ed0e49728c

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.