zeugma-0.7.0.0: Polysemy effects for testing
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.