runWriter package:rio

Unwrap a writer computation as a (result, output) pair. (The inverse of writer.)