1
1
mirror of https://github.com/github/semantic.git synced 2024-11-30 14:47:30 +03:00

add eval instance for sequence expression

This commit is contained in:
Ayman Nadeem 2018-08-09 12:59:29 -04:00
parent 9b3c3d279f
commit e833ad4fef

View File

@ -284,7 +284,9 @@ instance Ord1 SequenceExpression where liftCompare = genericLiftCompare
instance Show1 SequenceExpression where liftShowsPrec = genericLiftShowsPrec
-- TODO: Implement Eval instance for SequenceExpression
instance Evaluatable SequenceExpression
instance Evaluatable SequenceExpression where
eval (SequenceExpression a b) =
subtermValue a >> subtermRef b
-- | Javascript void operator