HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesydtest-0.22.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.22.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
#
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