1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Specialize snoc & cons.

This commit is contained in:
Rob Rix 2018-03-07 11:49:52 -05:00
parent b0815eeb36
commit 15f8962700

View File

@ -41,6 +41,8 @@ instance Pointed Latest where
instance Reducer a (Latest a) where instance Reducer a (Latest a) where
unit = Latest unit = Latest
cons _ = id
snoc _ = unit
instance Eq1 Latest where liftEq = genericLiftEq instance Eq1 Latest where liftEq = genericLiftEq
instance Ord1 Latest where liftCompare = genericLiftCompare instance Ord1 Latest where liftCompare = genericLiftCompare