Skip to content

Commit 4550d55

Browse files
committed
Type.Infer: Map.map is <$>
1 parent e03e0db commit 4550d55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Nix/Exec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ instance MonadNix e t f m => MonadEval (NValue t f m) m where
246246

247247
let
248248
fun x y z = addProvenance (Provenance scope $ NIf_ span (pure c) x y) z
249-
-- Note: join == \ f x -> f x x
249+
-- Note: join acts as \ f x -> f x x
250250
false = join (fun Nothing . pure) <$> f
251251
true = join (flip fun Nothing . pure) <$> t
252252

src/Nix/Type/Infer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ newtype Subst = Subst (Map TVar Type)
202202
compose :: Subst -> Subst -> Subst
203203
Subst s1 `compose` Subst s2 =
204204
Subst $
205-
apply (Subst s1) `Map.map`
205+
apply (Subst s1) <$>
206206
(s2 `Map.union` s1)
207207

208208
-- * class @Substitutable@

0 commit comments

Comments
 (0)