The method should allow to run a scenario safely. If the scenario throws exception (using throwException or error), the method's interpreter should catch the exception and return the control flow into the scenario.
data LangF next where
EvalSafely :: LangL a -> (Either Error a -> next) -> LangF next
Implement
EvalSafely
method.The method should allow to run a scenario safely. If the scenario throws exception (using
throwException
orerror
), the method's interpreter should catch the exception and return the control flow into the scenario.