graninas/Hydra

Add "EvalSafely" method

Aperta

#16 aperta il 11 apr 2020

 (0 commenti) (0 reazioni) (0 assegnatari)Haskell (14 fork)github user discovery
enhancementgood first issue

Metriche repository

Star
 (206 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor