1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Define an Eq instance for SomeBuiltin.

This commit is contained in:
Rob Rix 2018-05-28 11:52:31 -04:00
parent 5116d52da7
commit 71c1e50c0b

View File

@ -91,4 +91,7 @@ runPrimitive = interpret (\ (Prim builtin params) -> case builtin of
data SomeBuiltin where
SomeBuiltin :: Builtin arg return -> SomeBuiltin
instance Eq SomeBuiltin where
SomeBuiltin Print == SomeBuiltin Print = True
deriving instance Show SomeBuiltin