graninas/Hydra

Add "EvalSafely" method

Offen

#16 geöffnet am 11.04.2020

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Haskell (14 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (206 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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