graninas/Hydra

Add "EvalSafely" method

Open

#16 opened on Apr 11, 2020

 (0 comments) (0 reactions) (0 assignees)Haskell (14 forks)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (206 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide