zeugma-0.9.0.1: Polysemy effects for testing
Safe HaskellSafe-Inferred
LanguageGHC2021

Zeugma.TestError

Description

Combinators related to TestError.

Synopsis

Documentation

stopTest :: forall err r. Show err => HasCallStack => Member (Error TestError) r => InterpreterFor (Stop err) r Source #

Interpret Stop by throwing a TestError, with the call site's stack.

resumeTest :: forall err eff r. Show err => HasCallStack => Members [eff !! err, Error TestError] r => InterpreterFor eff r Source #

Interpret an effect into Resumable by throwing a TestError for Stops, with the call site's stack.

errorTest :: forall err r. Show err => HasCallStack => Member (Error TestError) r => InterpreterFor (Error err) r Source #

Interpret Error converting the error to TestError, with the call site's stack.