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:
parent
dd1e1c555d
commit
62ee3a149e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user