I have the following piece of code:
foldM (\exitCode args -> pure exitCode .&&. someCmdWith args) ExitSuccess argss
Which uses turtle
's (.&&.)
operator.
Is there a better abstraction I could use to apply .&&.
to the results of applying someCmdWith
to argss
?
Would this work?
If you want to write it even shorter, I believe this would also work: