mirror of
https://github.com/github/semantic.git
synced 2025-01-03 21:16:12 +03:00
New eval instance for integers
This commit is contained in:
parent
484abcc2ec
commit
f85e89872c
@ -48,7 +48,7 @@ instance (Monad m, AbstractValue v) => Eval t v m Data.Syntax.Literal.Integer wh
|
||||
eval _ yield (Data.Syntax.Literal.Integer x) = yield (integer (maybe 0 fst (readInteger x)))
|
||||
|
||||
instance (Monad m, AbstractValue v) => E2.Eval t v m Data.Syntax.Literal.Integer where
|
||||
eval (Data.Syntax.Literal.Integer x) = undefined -- yield (integer (maybe 0 fst (readInteger x)))
|
||||
eval (Data.Syntax.Literal.Integer x) = pure (integer (maybe 0 fst (readInteger x)))
|
||||
|
||||
|
||||
-- TODO: Should IntegerLiteral hold an Integer instead of a ByteString?
|
||||
|
Loading…
Reference in New Issue
Block a user