mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Kind of add the Eq instances
This commit is contained in:
parent
53d6a5067d
commit
07baeca6be
@ -158,6 +158,9 @@ resumeException m handle = raise (resumeError1 (lower m) (\yield -> lower . hand
|
||||
data SomeExc exc where
|
||||
SomeExc :: exc v -> SomeExc exc
|
||||
|
||||
instance Eq1 exc => Eq (SomeExc exc) where
|
||||
(SomeExc exc1) == (SomeExc exc2) = liftEq (==) exc1 exc2
|
||||
|
||||
instance (Show1 exc) => Show (SomeExc exc) where
|
||||
showsPrec num (SomeExc exc) = liftShowsPrec (const (const id)) (const id) num exc
|
||||
|
||||
|
@ -24,6 +24,7 @@ import Prologue
|
||||
data Unspecialized a b where
|
||||
Unspecialized :: { getUnspecialized :: Prelude.String } -> Unspecialized value value
|
||||
|
||||
deriving instance Eq (Unspecialized a b)
|
||||
deriving instance Show (Unspecialized a b)
|
||||
instance Show1 (Unspecialized a) where
|
||||
liftShowsPrec _ _ = showsPrec
|
||||
|
Loading…
Reference in New Issue
Block a user