[GHC] #12617: Make the interface of traceTc and traceRn the same

GHC ghc-devs at haskell.org
Sat Sep 24 15:21:26 UTC 2016


#12617: Make the interface of traceTc and traceRn the same
-------------------------------------+-------------------------------------
           Reporter:  mpickering     |             Owner:
               Type:  task           |            Status:  new
           Priority:  lowest         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 It always seemed strange to me that the interfaces for `traceTc` and
 `traceRn` were different.

 {{{#!hs
 traceTc :: String -> SDoc -> TcM ()
 traceRn :: SDoc -> RnM ()
 }}}

 I personally prefer using the `traceTc` interface and have to look up each
 time which function uses which interface. It seems beneficial but annoying
 to make `traceRn` have the same interface to improve usability slightly.

 Are there any objections if someone was to do this?

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


More information about the ghc-tickets mailing list