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 ?
Hi,
I'd like to partition a list of
Turtle.FilePath
based on whether they exist or not. If there wasn't aIO Bool
monad involved I would usepartition
butTurtle.testfile
is inside an IO monad as expected... I know there isfilterM
but I don't find apartitionM
equivalent. Is there some package somewhere that provides one ?https://hackage.haskell.org/package/extra-1.7.10/docs/Control-Monad-Extra.html#v:partitionM
thanks !