cleveland-0.1.2: Testing framework for Morley.
Safe HaskellNone
LanguageHaskell2010

Test.Cleveland.Tasty.Internal.Report

Description

Pretty-printers for reports in Tasty logs.

Synopsis

Documentation

formatError Source #

Arguments

:: Natural

The number of source code lines to print before and after the location of the error

-> CallStack

The error's callstack

-> String

The error message to display below the expression that caused the error

-> IO Builder 

Pretty-prints an error by displaying:

  • the source code where the error occurred
  • the expression that threw the error
  • an associated error message below said expression
  • the error's callstack