File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ defaultDerivationStrict val = do
273273 pure $ drv
274274 { inputs
275275 , outputs = outputs'
276- , env = ifNotJsonModEnv $ Map. union outputs'
276+ , env = ifNotJsonModEnv $ ( outputs' <> )
277277 }
278278
279279 drvPath <- pathToText <$> writeDerivation drv'
Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ remove :: Env -> Name -> Env
5252remove (TypeEnv env) var = TypeEnv $ Map. delete var env
5353
5454extends :: Env -> [(Name , [Scheme ])] -> Env
55- extends env xs = TypeEnv $ Map. fromList xs `Map.union` coerce env
55+ extends env xs = TypeEnv $ Map. fromList xs <> coerce env
5656
5757lookup :: Name -> Env -> Maybe [Scheme ]
5858lookup key (TypeEnv tys) = Map. lookup key tys
5959
6060merge :: Env -> Env -> Env
61- merge (TypeEnv a) (TypeEnv b) = TypeEnv $ a `Map.union` b
61+ merge (TypeEnv a) (TypeEnv b) = TypeEnv $ a <> b
6262
6363mergeRight :: Env -> Env -> Env
64- mergeRight (TypeEnv a) (TypeEnv b) = TypeEnv $ b `Map.union` a
64+ mergeRight (TypeEnv a) (TypeEnv b) = TypeEnv $ b <> a
6565
6666mergeEnvs :: [Env ] -> Env
6767mergeEnvs = foldl' (<>) mempty
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ compose :: Subst -> Subst -> Subst
202202Subst s1 `compose` Subst s2 =
203203 Subst $
204204 apply (Subst s1) <$>
205- (s2 `Map.union` s1)
205+ (s2 <> s1)
206206
207207-- * class @Substitutable@
208208
You can’t perform that action at this time.
0 commit comments