mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
Add Decrement Expression constructor
This commit is contained in:
parent
c3515fae15
commit
63f2588e0e
@ -186,3 +186,10 @@ newtype Increment a = Increment a
|
|||||||
|
|
||||||
instance Eq1 Increment where liftEq = genericLiftEq
|
instance Eq1 Increment where liftEq = genericLiftEq
|
||||||
instance Show1 Increment where liftShowsPrec = genericLiftShowsPrec
|
instance Show1 Increment where liftShowsPrec = genericLiftShowsPrec
|
||||||
|
|
||||||
|
-- | Decrement (e.g. 1-- in C or Go).
|
||||||
|
newtype Decrement a = Decrement a
|
||||||
|
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Show, Traversable)
|
||||||
|
|
||||||
|
instance Eq1 Decrement where liftEq = genericLiftEq
|
||||||
|
instance Show1 Decrement where liftShowsPrec = genericLiftShowsPrec
|
||||||
|
Loading…
Reference in New Issue
Block a user