[GHC] #8424: quasi-quotes have carriage returns on Windows
GHC
ghc-devs
Wed Oct 9 03:09:28 UTC 2013
#8424: quasi-quotes have carriage returns on Windows
------------------------------------+-------------------------------------
Reporter: GregWeber | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 7.6.3
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
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?
I asked this question on ghc-users and there was no response.
I am willing to make this fix if it is deemed appropriate.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8424>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list