1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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
unit = Latest
cons _ = id
snoc _ = unit
instance Eq1 Latest where liftEq = genericLiftEq
instance Ord1 Latest where liftCompare = genericLiftCompare