hspec-core-2.11.9: A Testing Framework for Haskell
Stabilityunstable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Hspec.Core.Format

Description

This is an unstable API. Use Test.Hspec.Api.Format.V2 instead.

Synopsis

Documentation

type Format = Event -> IO () Source #

data Event Source #

Instances

Instances details
Show Event Source # 
Instance details

Defined in Test.Hspec.Core.Format

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

type Progress = (Int, Int) Source #

type Path = ([String], String) Source #

A Path describes the location of a spec item within a spec tree.

It consists of a list of group descriptions and a requirement description.

Since: 2.0.0

data Location Source #

Location is used to represent source locations.

newtype Seconds Source #

Constructors

Seconds Double 

Instances

Instances details
Num Seconds Source # 
Instance details

Defined in Test.Hspec.Core.Clock

Fractional Seconds Source # 
Instance details

Defined in Test.Hspec.Core.Clock

Show Seconds Source # 
Instance details

Defined in Test.Hspec.Core.Clock

PrintfArg Seconds Source # 
Instance details

Defined in Test.Hspec.Core.Clock

Eq Seconds Source # 
Instance details

Defined in Test.Hspec.Core.Clock

Methods

(==) :: Seconds -> Seconds -> Bool #

(/=) :: Seconds -> Seconds -> Bool #

Ord Seconds Source # 
Instance details

Defined in Test.Hspec.Core.Clock

data Item Source #

Instances

Instances details
Show Item Source # 
Instance details

Defined in Test.Hspec.Core.Format

Methods

showsPrec :: Int -> Item -> ShowS #

show :: Item -> String #

showList :: [Item] -> ShowS #

data Result Source #

Instances

Instances details
Show Result Source # 
Instance details

Defined in Test.Hspec.Core.Format

monadic :: MonadIO m => (m () -> IO ()) -> (Event -> m ()) -> IO Format Source #