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

Modulehspec-core-2.11.14Haskell2010

Test.Hspec.Core.Extension.Item

This API is experimental.

  • 9 types
  • 5 values

Types

9 declarations
datadata Item a
#

Item is used to represent spec items internally. A spec item consists of:

  • a textual description of a desired behavior

  • an example for that behavior

  • additional meta information

Everything that is an instance of the Example type class can be used as an example, including QuickCheck properties, Hspec expectations and HUnit assertions.

Constructors

typetype ActionWith a = a -> IO ()
#

An IO action that expects an argument of type a.

This type is what Examples are ultimately unlifted into for execution.

typetype ProgressCallback = Progress -> IO ()
#

Callback used by composite test items that contain many tests to report their progress towards finishing them all.

This is used, for example, to report how many QuickCheck examples are finished.

datadata Result
#

The result of running an example

Instances5Show, Example, Arg
  • Show ResultDefined in hspec-core-2.11.14 · Test.Hspec.Core.Example
  • Example ResultDefined in hspec-core-2.11.14 · Test.Hspec.Core.Example
  • Example (a -> Result)Defined in hspec-core-2.11.14 · Test.Hspec.Core.Example
  • type Arg Result = ()Defined in hspec-core-2.11.14 · Test.Hspec.Core.Example
  • type Arg (a -> Result) = aDefined in hspec-core-2.11.14 · Test.Hspec.Core.Example

Operations

5 declarations