mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Revert "Remove the default implementation for alignWith."
This reverts commit 3edafd3fb2c75c3664bbd05dc06dbcf601f8748c.
This commit is contained in:
parent
a65798b0dc
commit
998a7f9543
@ -8,6 +8,7 @@ class Functor f => Align f where
|
||||
align :: f a -> f b -> f (These a b)
|
||||
align = alignWith id
|
||||
alignWith :: (These a b -> c) -> f a -> f b -> f c
|
||||
alignWith f a b = f <$> align a b
|
||||
|
||||
instance Align [] where
|
||||
nil = []
|
||||
|
Loading…
Reference in New Issue
Block a user