I need a function of type Monad m => m [a] -> [m a]
, which works just as sequence
does, but in reverse.
I've tried searching for any function with this type signature on Hoogle, but there doesn't seem to exist any. Is it impossible in general? Should I be avoiding this type of construction to begin with?