We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
insert
const
1 parent 2ba1061 commit db7ca45Copy full SHA for db7ca45
src/Nix/Eval.hs
@@ -484,16 +484,17 @@ buildArgument
484
buildArgument params arg =
485
do
486
scope <- currentScopes :: m (Scopes m v)
487
+ let argThunk = defer $ withScopes scope arg
488
case params of
- Param name -> M.singleton name <$> defer (withScopes scope arg)
489
+ Param name -> M.singleton name <$> argThunk
490
ParamSet s isVariadic m ->
491
492
(args, _) <- fromValue @(AttrSet v, AttrSet SourcePos) =<< arg
493
let
494
inject =
495
maybe
496
id
- (\ n -> M.insert n $ const $ defer $ withScopes scope arg)
497
+ (\ n -> M.insert n $ const argThunk) -- why insert into const?
498
m
499
loebM
500
(inject $
0 commit comments