when package:shelly

Conditional execution of Applicative expressions. For example,
when debug (putStrLn "Debugging")
will output the string Debugging if the Boolean value debug is True, and otherwise do nothing.
A monadic-conditional version of the when guard.
Similar to findWhen, but also filter out directories. Alternatively, similar to findDirFilter, but also filter out files. Filtering out directories makes the find much more efficient.
find that filters the found files as it finds. Files must satisfy the given filter to be returned in the result.