Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 72701fe

Browse files
committed
Reuse fromScope.
1 parent e36cc7c commit 72701fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

semantic-core/src/Data/Scope.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ instance HFunctor (Scope a) where
5151
hmap f = Scope . f . fmap (fmap f) . unScope
5252

5353
instance (Eq a, Eq b, forall a . Eq a => Eq (f a), Monad f) => Eq (Scope a f b) where
54-
(==) = (==) `on` (unScope >=> sequenceA)
54+
(==) = (==) `on` fromScope
5555

5656
instance (Ord a, Ord b, forall a . Eq a => Eq (f a)
5757
, forall a . Ord a => Ord (f a), Monad f) => Ord (Scope a f b) where
58-
compare = compare `on` (unScope >=> sequenceA)
58+
compare = compare `on` fromScope
5959

6060
deriving instance (Show a, Show b, forall a . Show a => Show (f a)) => Show (Scope a f b)
6161

0 commit comments

Comments
 (0)