mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Derive a MonadFail instance for Evaluation.
This commit is contained in:
parent
32abdb5bf5
commit
788b4f5195
@ -103,7 +103,7 @@ evaluates :: forall v term.
|
||||
evaluates pairs (_, t) = run @(Evaluating term v) (runEvaluator (localModuleTable (const (Linker (Map.fromList (map (first (dropExtensions . blobPath)) pairs)))) (foldSubterms eval t)))
|
||||
|
||||
newtype Evaluation term value a = Evaluation { runEvaluation :: Evaluator (Evaluating term value) term value a }
|
||||
deriving (Applicative, Functor, Monad)
|
||||
deriving (Applicative, Functor, Monad, MonadFail)
|
||||
|
||||
instance ( AbstractValue v
|
||||
, Evaluatable (Base t)
|
||||
|
Loading…
Reference in New Issue
Block a user