Add Eq instance for Universe in reflection

This commit is contained in:
David Raymond Christiansen 2015-08-13 17:15:02 -07:00
parent 82c2735637
commit cf6c277715

View File

@ -242,6 +242,12 @@ instance Eq TT where
equalp (TType u) (TType u') = u == u'
equalp x y = False
instance Eq Universe where
Reflection.NullType == Reflection.NullType = True
Reflection.UniqueType == Reflection.UniqueType = True
Reflection.AllTypes == Reflection.AllTypes = True
_ == _ = False
total
forget : TT -> Maybe Raw
forget tm = fe [] tm