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