[GHC] #9392: "\n" is displayed weirdly in error messages
GHC
ghc-devs at haskell.org
Thu Mar 19 19:21:25 UTC 2015
#9392: "\n" is displayed weirdly in error messages
-------------------------------------+-------------------------------------
Reporter: Artyom.Kazak | Owner:
Type: feature request | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.8.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Other | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: #9681 | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):
* keywords: newcomer =>
* type: bug => feature request
Comment:
@Artyom.Kazak: what exactly do you find weird about the current error
message? The printing over multiple lines, or just the extra slashes that
are added. Perhaps the following would be an improvement:
{{{
In the expression:
"a\n
b"
+ ()
}}}
Replying to [comment:4 rwbarton]:
> The formatting is intentional, see #4436. It would be nice to use the
original syntax, though (and set the "original syntax" of a quasiquoter to
use the multiline thing).
To show the exception from #4436, the following code path is used:
`TcSplice.runMeta -> Outputable.ppr -> (instance Outputable HsLit) ->
Outputable.pprHsString -> GHC.Show.showMultiLineString`
I don't see an easy way to make the change you propose.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9392#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list