graninas/Hydra

Add "EvalSafely" method

开放

#16 创建于 2020年4月11日

 (0 条评论) (0 个反应) (0 位负责人)Haskell (14 个派生)github user discovery
enhancementgood first issue

仓库指标

星标
 (206 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Implement EvalSafely method.

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

贡献者指南