1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Change type of product and remove instances from Error

This commit is contained in:
joshvera 2018-05-24 16:23:47 -04:00
parent a33b4851a6
commit 800f2bc858

View File

@ -163,13 +163,13 @@ instance Evaluatable Empty where
data Identity a = Identity a
deriving (Generic1, Message1)
data Product a b = Product a b
data Product a = Product a a
deriving (Generic1, Message1)
-- | Syntax representing a parsing or assignment error.
data Error a = Error { errorCallStack :: ErrorStack, errorExpected :: [String], errorActual :: Maybe String, errorChildren :: [a] }
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Hashable1, Mergeable, Ord, Show, Traversable, FreeVariables1, Declarations1, Generic, Named, Message)
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Hashable1, Mergeable, Ord, Show, Traversable, FreeVariables1, Declarations1)
instance Eq1 Error where liftEq = genericLiftEq
instance Ord1 Error where liftCompare = genericLiftCompare