mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Fewer parens.
This commit is contained in:
parent
64b011e388
commit
b0739e53d1
@ -54,8 +54,8 @@ run comparable (Free (Recursive (annotation1 :< a) (annotation2 :< b) f)) = run
|
||||
|
||||
run comparable (Free (ByKey a b f)) = run comparable $ f byKey where
|
||||
byKey = Map.fromList $ toKeyValue <$> List.union aKeys bKeys
|
||||
toKeyValue key | List.elem key deleted = (key, Pure $ Delete (a ! key))
|
||||
toKeyValue key | List.elem key inserted = (key, Pure $ Delete (b ! key))
|
||||
toKeyValue key | List.elem key deleted = (key, Pure . Delete $ a ! key)
|
||||
toKeyValue key | List.elem key inserted = (key, Pure . Delete $ b ! key)
|
||||
toKeyValue key = (key, interpret comparable (a ! key) (b ! key))
|
||||
aKeys = Map.keys a
|
||||
bKeys = Map.keys b
|
||||
|
Loading…
Reference in New Issue
Block a user