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.
1 parent a99a27c commit b4b1aaaCopy full SHA for b4b1aaa
src/Nix/Value.hs
@@ -527,10 +527,9 @@ iterNValueM
527
-> (NValue' t f m (n r) -> n r)
528
-> NValue t f m
529
-> n r
530
-iterNValueM transform k f =
531
- iterM f <=< go . (k (iterNValueM transform k f) <$>)
+iterNValueM transform k f = fix (((iterM f <=< go) .) . fmap . k)
532
where
533
- go (Pure x) = Pure <$> x
+ go (Pure x) = Pure <$> x -- It should be a 'sequenceA' if to remote 'transform' form function.
534
go (Free fa) = Free <$> bindNValue' transform go fa
535
536
-- *** Utils
0 commit comments