mirror of
https://github.com/github/semantic.git
synced 2025-01-08 00:16:53 +03:00
delete mergeEnvs
This commit is contained in:
parent
121f7cc25d
commit
060cb4097e
@ -11,7 +11,6 @@ module Data.Abstract.Environment
|
||||
, intersect
|
||||
, lookup
|
||||
, lookupEnv'
|
||||
, mergeEnvs
|
||||
, mergeNewer
|
||||
, names
|
||||
, newEnv
|
||||
@ -56,10 +55,6 @@ instance Lower (Bindings address) where
|
||||
newtype Environment address = Environment { unEnvironment :: NonEmpty (Bindings address) }
|
||||
deriving (Eq, Ord)
|
||||
|
||||
mergeEnvs :: Environment address -> Environment address -> Environment address
|
||||
mergeEnvs (Environment (a :| as)) (Environment (b :| bs)) =
|
||||
Environment ((<>) a b :| alignWith (mergeThese (<>)) as bs)
|
||||
|
||||
-- | Make and enter a new empty scope in the given environment.
|
||||
push :: Environment address -> Environment address
|
||||
push (Environment (a :| as)) = Environment (mempty :| a : as)
|
||||
|
Loading…
Reference in New Issue
Block a user