Greg Weber | 5 Oct 01:36 2013

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?
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Christopher Done | 5 Oct 08:19 2013
Picon

Re: carriage returns on Windows from quasi-quotes

They're on Windows?

On 5 October 2013 01:36, Greg Weber <greg <at> gregweber.info> 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 <at> haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
Greg Weber | 5 Oct 20:53 2013

Re: carriage returns on Windows from quasi-quotes

Yes, this is only an issue on Windows.


On Fri, Oct 4, 2013 at 11:19 PM, Christopher Done <chrisdone <at> gmail.com> wrote:
They're on Windows?

On 5 October 2013 01:36, Greg Weber <greg <at> gregweber.info> 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 <at> haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Gmane