HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehspec-core-2.11.18Haskell2010

Test.Hspec.Core.Formatters.V1

Deprecated. Use Test.Hspec.Api.Formatters.V1 instead.

This module contains formatters that can be used with hspecWith.

Contents
  1. Formatters
  2. Implementing a custom Formatter
  3. Accessing the runner state
  4. Appending to the generated report
  5. Dealing with colors
  6. Helpers
Synopsis

Formatters

Implementing a custom Formatter

A formatter is a set of actions. Each action is evaluated when a certain situation is encountered during a test run.

Actions live in the FormatM monad. It provides access to the runner state and primitives for appending to the generated report.

Accessing the runner state

newtypenewtype Seconds
#

Constructors

Instances6Eq, Fractional, Num, Ord, Show, PrintfArg
  • Eq SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock
  • Fractional SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock
  • Num SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock
  • Ord SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock
  • Show SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock
  • PrintfArg SecondsDefined in hspec-core-2.11.18 · Test.Hspec.Core.Clock

Appending to the generated report

Dealing with colors

Helpers