New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib.fileset.toList: init #288677
lib.fileset.toList: init #288677
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-54/39990/1 |
af2cb79
to
3ea077d
Compare
4658b55
to
c5c908f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs suggestions, and then LGTM!
The resulting list of files can be turned back into a file set using [`lib.fileset.unions`](#function-library-lib.fileset.unions). | ||
|
||
Type: | ||
toList :: FileSet -> [ Path ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to ignore.
toList :: FileSet -> [ Path ] | |
lib.fileset.toList :: FileSet -> [ Path ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'd like to keep it consistent with the other signatures, which is without the prefix.
e466f88
to
e3a6e38
Compare
Successfully created backport PR for |
Description of changes
This adds
lib.fileset.toList
to turn a fileset into a list of its files as requested in #288592. See also this Discourse thread for the motivation.This work is sponsored by Antithesis ✨
Things done
Add a 👍 reaction to pull requests you find important.