1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Need an instance for Empty

This commit is contained in:
Timothy Clem 2018-02-16 17:01:49 -08:00
parent 6108396f86
commit e76ffd3656

View File

@ -217,6 +217,9 @@ instance Show1 Empty where liftShowsPrec _ _ _ _ = showString "Empty"
instance (Monad m, AbstractValue v) => Eval t v m Empty where
eval _ yield _ = yield unit
instance (Monad m, AbstractValue v) => E2.Eval t v m Empty where
eval _ = pure unit
-- | Syntax representing a parsing or assignment error.
data Error a = Error { errorCallStack :: ErrorStack, errorExpected :: [String], errorActual :: Maybe String, errorChildren :: [a] }