[GHC] #8796: -ddump-splices prints to error stream

GHC ghc-devs at haskell.org
Mon Feb 17 11:59:29 UTC 2014


#8796: -ddump-splices prints to error stream
-------------------------------+-------------------------------------------
        Reporter:  jstolarek   |            Owner:
            Type:  bug         |           Status:  new
        Priority:  normal      |        Milestone:
       Component:  Compiler    |          Version:  7.9
      Resolution:              |         Keywords:
Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple             |       Difficulty:  Easy (less than 1 hour)
 Type of failure:              |       Blocked By:
  None/Unknown                 |  Related Tickets:
       Test Case:              |
        Blocking:              |
-------------------------------+-------------------------------------------

Comment (by nomeata):

 Wasn’t there a ticket asking for more structured splice output, i.e.
 dumping it to a separate file, with precise origin information, basically
 everything needed to write a tool that reliably replaces the TH code by
 the splice...

 Currenlty I only find #5016, which is about getting the dump closer to
 valid Haskell (also see [http://stackoverflow.com/questions/12169093/can-i
 -rely-on-template-haskell-expansion-using-ddump-splices-to-always-genera
 this SE question]). At http://stackoverflow.com/a/15851260/946226 people
 are surprised that it is dumped to stderr, and not to a file. And there
 are two tools doing this splace-replacement-thingy already:
 https://joeyh.name/blog/entry/Template_Haskell_on_impossible_architectures/
 and http://hackage.haskell.org/package/zeroth. So it seems that there is
 demand for improvement.

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


More information about the ghc-tickets mailing list