Added Eq and Ord instances for the Pass_ data structure (going solely by pass name)

This commit is contained in:
Neil Brown 2008-02-19 09:36:41 +00:00
parent 360abc195e
commit 2bbcd4ec9a

View File

@ -59,7 +59,14 @@ data Monad m => Pass_ m = Pass {
,passPost :: Set.Set Property
,passEnabled :: CompState -> Bool
}
instance Monad m => Eq (Pass_ m) where
x == y = passName x == passName y
instance Monad m => Ord (Pass_ m) where
compare x y = compare (passName x) (passName y)
type Pass = Pass_ PassM
type PassR = Pass_ PassMR