graninas/Hydra

Add "EvalSafely" method

Ouverte

#16 ouverte le 11 avr. 2020

 (0 commentaire) (0 réaction) (0 personne assignée)Haskell (14 forks)github user discovery
enhancementgood first issue

Métriques du dépôt

Stars
 (206 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur