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

Commit 3119c22

Browse files
committed
Derive the Eq, Ord, & Show instances for Ann.
1 parent 5ec4069 commit 3119c22

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

semantic-core/src/Data/Core.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,10 @@ infix 3 .=
214214

215215
data Ann f a
216216
= Ann Loc (f a)
217-
deriving (Foldable, Functor, Generic1, Traversable)
217+
deriving (Eq, Foldable, Functor, Generic1, Ord, Show, Traversable)
218218

219219
instance HFunctor Ann
220220

221-
deriving instance (Eq a, forall a . Eq a => Eq (f a), Monad f) => Eq (Ann f a)
222-
deriving instance (Ord a, forall a . Eq a => Eq (f a)
223-
, forall a . Ord a => Ord (f a), Monad f) => Ord (Ann f a)
224-
deriving instance (Show a, forall a . Show a => Show (f a)) => Show (Ann f a)
225-
226221
instance RightModule Ann where
227222
Ann l b >>=* f = Ann l (b >>= f)
228223

0 commit comments

Comments
 (0)