HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduletasty-discover-5.2.0Haskell2010

Test.Tasty.Discover.Internal.Generator

The test generator boilerplate module.

Any test that is supported (HUnit, HSpec, etc.) provides here, a generator type with all the context necessary for outputting the necessary boilerplate for the generated main function that will run all the tests.

Contents
  1. Types
  2. Generators
  3. Boilerplate Formatter
  4. Type Constructor
Synopsis

Types

datadata Generator

The generator type.

Constructors

Instances2Generic, Rep
datadata Test

The test type.

Constructors

Instances5Eq, Ord, Show, Generic, Rep

Generators

valuegetGenerators :: [Test] -> [Generator]

Generator retriever (many).

Groups tests by generator prefix and extracts one representative generator from each group. Uses unsafeHead because groupBy never produces empty groups when given a non-empty input list.

Boilerplate Formatter

Type Constructor