1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00

Add Decrement Expression constructor

This commit is contained in:
Rick Winfrey 2017-10-09 12:36:12 -07:00
parent c3515fae15
commit 63f2588e0e

View File

@ -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