HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulesydtest-0.33.0.0Haskell2010

Test.Syd.SpecDef

This module defines all the functions you will use to define your test suite.

  • 13 types
  • 14 values
  • Packagesydtest-0.33.0.0
  • Exports27
  • LanguageHaskell2010
  • LicenceLicenseRef-OtherLicense
  • SourceSpecDef.hs
datadata SpecDefTree (outers :: [Type]) inner extra where
#

A tree of tests

This type has three parameters:

  • outers: A type-level list of the outer resources. These are resources that are prived once, around a group of tests. (This is the type of the results of aroundAll.)

  • inner: The inner resource. This is a resource that is set up around every test, and even every example of a property test. (This is the type of the result of around.)

  • result: The result (TestDefM is a monad.)

In practice, all of these three parameters should be () at the top level.

When you're just using sydtest and not writing a library for sydtest, you probably don't even want to concern yourself with this type.

Constructors

Instances4Functor, Foldable, Traversable, MonadWriter
datadata Parallelism
#

Constructors

  • Parallel

    As many at once as there are threads to run them.

  • ParallelWith !Word

    At most this many at once, however many threads there are.

    For tests that contend for something the test suite does not own, like one database server behind a database per test. Running fewer of those at once can be faster than running all of them, and is the smaller instrument where Sequential would do.

  • Sequential

    One at a time.

Instances4Eq, Show, Generic, Rep
Instances4Eq, Show, Generic, Rep
datadata FlakinessMode
#
Instances4Eq, Show, Generic, Rep
datadata ExpectationMode
#
Instances4Eq, Show, Generic, Rep
datadata TestSuiteStats
#
Instances4Eq, Show, Semigroup, Monoid
datadata TestRunReport
#
Instances3Show, Generic, Rep