Rename function to write_either.
Playing with Either-based IO generators.