You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is shorter and doesn't contain any visual clutter. You are only doing blacklisting on your example; once you start to do whitelisting baseNameOf path won't cut it anymore for the directories. You will need to also define something like relativePath = removePrefix (toString src) name inside the let expression and then check for hasPrefix dir relativePath.
It also provides some other utilities like matchExt that are documented in the README.
Like every library, it tries to create an reusable useful abstraction so that you don't have to reinvent or copy the same thing every time.
I'm currently using
cleanSourceWith
like:What is the advantage of using
nix-filter
?The text was updated successfully, but these errors were encountered: