graninas/Hydra

Add "EvalSafely" method

オープン

#16 opened on 2020/04/11

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Haskell (14 件のフォーク)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (206 個のスター)
PR merge metrics
 (30d に merged 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

コントリビューターガイド