mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Update Context eval instance to use yield
This commit is contained in:
parent
b821c4009c
commit
e65686463a
@ -206,7 +206,9 @@ instance Diffable Context where
|
||||
instance Eq1 Context where liftEq = genericLiftEq
|
||||
instance Ord1 Context where liftCompare = genericLiftCompare
|
||||
instance Show1 Context where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
instance (Monad m) => Eval l (Value s a l) m s a Context where
|
||||
eval ev Context{..} = ev contextSubject
|
||||
eval ev yield Context{..} = ev pure contextSubject >>= yield
|
||||
|
||||
instance (Monad m) => Eval l Type m s a Context where
|
||||
eval ev Context{..} = ev contextSubject
|
||||
eval ev yield Context{..} = ev pure contextSubject >>= yield
|
||||
|
Loading…
Reference in New Issue
Block a user