
#11215: Line endings in quasiquotations are not normalised -------------------------------------+------------------------------------- Reporter: refold | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: #8424 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): Replying to [comment:2 refold]:
I'll summarise/reiterate my arguments for doing this in GHC:
These are convincing arguments. Especially the point about a bug being found in the wild, and the fact that there are two tickets about this issue. Go for it: it's quite easy. I think just adding a processing pass on [https://github.com/ghc/ghc/blob/master/compiler/rename/RnSplice.hs#L344 line 344] (beginning `quoteExpr =`) of !RnSplice should do it. And we'll need a test. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11215#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler