[GHC] #14876: Reading source files in text mode so that we get CRLF conversion under Windows?
GHC
ghc-devs at haskell.org
Tue Mar 20 05:59:29 UTC 2018
#14876: Reading source files in text mode so that we get CRLF conversion under
Windows?
-------------------------------------+-------------------------------------
Reporter: SimonHengel | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by SimonHengel):
I haven't tried, but just from looking at the code for {{{quoteFile}}} I
think that the current behavior is also inconsistent. {{{quoteFile}}}
uses {{{readFile}}} and hence when we use a QuasiQuoter with
{{{quoteFile}}} we will get newline conversions, while when we use the
QuasiQuoter without {{{quoteFile}}} we do not get newline conversions.
https://hackage.haskell.org/package/template-
haskell-2.13.0.0/docs/src/Language.Haskell.TH.Quote.html#quoteFile
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14876#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list