1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Even tighter.

This commit is contained in:
Rob Rix 2017-05-05 15:28:09 -04:00
parent 2ac1baef7a
commit 948869066c

View File

@ -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