partitionM ? - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Vincent L

Hi,
I'd like to partition a list of Turtle.FilePath based on whether they exist or not. If there wasn't a IO Bool monad involved I would use partition but Turtle.testfile is inside an IO monad as expected... I know there is filterM but I don't find a partitionMequivalent. Is there some package somewhere that provides one ?