Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
I need something like:
unfoldrio :: (b -> IO (Maybe (a, b))) -> b -> IO [a]
anyone have any ideas?
I got an answer elsewhere: https://hackage.haskell.org/package/monad-loops-0.4.3/docs/Control-Monad-Loops.html#v:unfoldrM
Conduits, pipes, list t and probably machines have a function called unfoldM