1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00

Move a Monad constraint around.

This commit is contained in:
Rob Rix 2018-03-23 20:40:51 -04:00
parent 0b0bf455d4
commit 2f3cd99d7e
2 changed files with 1 additions and 3 deletions

View File

@ -63,7 +63,6 @@ evaluateTerm = foldSubterms (analyzeTerm eval)
type MonadEvaluatable term value m =
( Evaluatable (Base term)
, FreeVariables term
, Monad m
, MonadAddressable (LocationFor value) value m
, MonadAnalysis term value m
, MonadThrow Prelude.String value m

View File

@ -153,8 +153,7 @@ instance ValueRoots Value where
-- | Construct a 'Value' wrapping the value arguments (if any).
instance MonadEvaluatable term Value m => MonadValue Value m where
instance (Monad m, MonadEvaluatable term Value m) => MonadValue Value m where
unit = pure . injValue $ Unit
integer = pure . injValue . Data.Abstract.Value.Integer . Number.Integer
boolean = pure . injValue . Boolean