mirror of
https://github.com/github/semantic.git
synced 2024-12-11 08:45:48 +03:00
Monomorphize.
This commit is contained in:
parent
b54d109311
commit
a2348e3463
@ -98,7 +98,7 @@ newtype DedupeKey = DedupeKey (T.Text, T.Text) deriving (Eq, Ord)
|
||||
-- identifiers) are in the list.
|
||||
-- Action: Combine them into a single Replaced entry.
|
||||
dedupe :: [(Entry, Declaration)] -> [(Entry, Declaration)]
|
||||
dedupe = (fmap . fmap) snd tuples
|
||||
dedupe = fmap (map snd) tuples
|
||||
where
|
||||
tuples = sortOn fst . Map.elems . snd . foldl' go (0, Map.empty)
|
||||
go :: (Int, Map.Map DedupeKey (Int, (Entry, Declaration)))
|
||||
|
Loading…
Reference in New Issue
Block a user