Re: carriage returns on Windows from quasi-quotes

2013-10-05 Thread Christopher Done
They're on Windows?

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

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: carriage returns on Windows from quasi-quotes

2013-10-05 Thread Greg Weber
Yes, this is only an issue on Windows.


On Fri, Oct 4, 2013 at 11:19 PM, Christopher Done chrisd...@gmail.comwrote:

 They're on Windows?

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

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


carriage returns on Windows from quasi-quotes

2013-10-04 Thread 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