Added Eq and Ord instances for the Pass_ data structure (going solely by pass name)
This commit is contained in:
parent
360abc195e
commit
2bbcd4ec9a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user