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:
parent
0b0bf455d4
commit
2f3cd99d7e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user