1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Use a pointful definition for <>.

This commit is contained in:
Rob Rix 2018-03-07 11:50:15 -05:00
parent 15f8962700
commit 81e5fa061a

View File

@ -34,7 +34,7 @@ newtype Latest a = Latest { unLatest :: a }
deriving (Eq, Foldable, Functor, Generic1, Ord, Show, Traversable)
instance Semigroup (Latest a) where
(<>) = flip const
_ <> a = a
instance Pointed Latest where
point = Latest