mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Even tighter.
This commit is contained in:
parent
2ac1baef7a
commit
948869066c
@ -52,7 +52,7 @@ before :: Patch a -> Maybe a
|
||||
before = maybeFst . unPatch
|
||||
|
||||
afterOrBefore :: Patch a -> a
|
||||
afterOrBefore = these identity identity (curry snd) . unPatch
|
||||
afterOrBefore = mergeThese (flip const) . unPatch
|
||||
|
||||
-- | Return both sides of a patch.
|
||||
unPatch :: Patch a -> These a a
|
||||
|
Loading…
Reference in New Issue
Block a user