[GHC] #9681: Printing of "\n" in error messages is broken

GHC ghc-devs at haskell.org
Thu Oct 30 11:24:13 UTC 2014


#9681: Printing of "\n" in error messages is broken
-------------------------------------+-------------------------------------
              Reporter:  oerjan      |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  high        |        Milestone:  7.10.1
             Component:  Compiler    |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:  1+"\n"      |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by mlen):

 According to #4436, the formatting is intended behavior for multiline
 strings.
 Maybe that behavior should be only enabled with TH or only non-blank
 lines.

 I started to work on the case when single newline character is truncated
 in the output.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9681#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list