1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 04:51:57 +03:00

fix redundant constraint

This commit is contained in:
Patrick Thomson 2018-03-19 15:51:14 -04:00
parent dd1e1c555d
commit 62ee3a149e

View File

@ -102,7 +102,7 @@ trim :: Environment l a -> Environment l a
trim (Environment (a :| as)) = Environment (a :| filtered)
where filtered = filter (not . Map.null) as
bind :: (Ord l, Foldable t) => t Name -> Environment l a -> Environment l a
bind :: Foldable t => t Name -> Environment l a -> Environment l a
bind names env = foldMap envForName names
where envForName name = maybe mempty (curry unit name) (lookup name env)