Add a deriving Eq on Schemas.

The equality is completely syntactic.
This commit is contained in:
Iavor S. Diatchki 2017-02-17 11:38:51 -08:00
parent 41131fe7ed
commit 1d8f2576c8

View File

@ -38,7 +38,7 @@ data Kind = KType
-- | The types of polymorphic values.
data Schema = Forall { sVars :: [TParam], sProps :: [Prop], sType :: Type }
deriving (Show, Generic, NFData)
deriving (Eq, Show, Generic, NFData)
-- | Type parameters.
data TParam = TParam { tpUnique :: !Int -- ^ Parameter identifier