carriage returns on Windows from quasi-quotes

A Windows user rerported using Data.Text.IO.writeFile to write out quasi-quoted text. writeFile automatically translates '\r' to "\r\n", so the user ended up writing out "\r\r\n" to a file. Haskell seems to be adopting the policy or removing '\r' from Haskell land. Is there any reason why quasi-quotes should not automatically strip carriage returns?

They're on Windows?
On 5 October 2013 01:36, Greg Weber
A Windows user rerported using Data.Text.IO.writeFile to write out quasi-quoted text.
writeFile automatically translates '\r' to "\r\n", so the user ended up writing out "\r\r\n" to a file.
Haskell seems to be adopting the policy or removing '\r' from Haskell land. Is there any reason why quasi-quotes should not automatically strip carriage returns?
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Yes, this is only an issue on Windows.
On Fri, Oct 4, 2013 at 11:19 PM, Christopher Done
They're on Windows?
On 5 October 2013 01:36, Greg Weber
wrote: A Windows user rerported using Data.Text.IO.writeFile to write out quasi-quoted text.
writeFile automatically translates '\r' to "\r\n", so the user ended up writing out "\r\r\n" to a file.
Haskell seems to be adopting the policy or removing '\r' from Haskell land. Is there any reason why quasi-quotes should not automatically strip carriage returns?
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (2)
-
Christopher Done
-
Greg Weber