1
1
mirror of https://github.com/github/semantic.git synced 2025-01-01 11:46:14 +03:00

Placate hlint.

This commit is contained in:
Rob Rix 2018-05-30 09:02:35 -04:00
parent 756cade411
commit a6934f5dfa

View File

@ -119,7 +119,7 @@ overwrite pairs env = unpairs $ mapMaybe lookupAndAlias pairs
--
-- Unbound names are silently dropped.
roots :: (Ord location, Foldable t) => Environment location -> t Name -> Live location
roots env names = addresses (intersect names env)
roots env names = addresses (names `intersect` env)
addresses :: Ord location => Environment location -> Live location
addresses = fromAddresses . map snd . pairs