Test.Hspec.Formatters

# Formatters

silent

specdoc

progress

failed_examples

# Implementing a custom Formatter

data Formatter

data FormatM a

## Accessing the runner state

getSuccessCount

getPendingCount

getFailCount

getTotalCount

data FailureRecord

getFailMessages

usedSeed

getCPUTime

getRealTime

## Appending to the gerenated report

write

writeLine

newParagraph

## Dealing with colors

withSuccessColor

withPendingColor

withFailColor

## Helpers

formatException

# Using custom formatters with `hspec-discover`

class IsFormatter a