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:
parent
b0815eeb36
commit
15f8962700
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user