[GHC] #11549: Add -fshow-runtime-rep

GHC ghc-devs at haskell.org
Mon Mar 28 20:29:12 UTC 2016


#11549: Add -fshow-runtime-rep
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  goldfire
            Type:  bug               |               Status:  closed
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  8.1
      Resolution:  fixed             |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1961
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Mmm, this is a good point. My first thought here was to look for kind
 errors in specified type arguments and provide the user with a better
 error (including the full type of the applied function) in the case of a
 unification error.

 Austin and I discussed this and he suggested that perhaps
 `-XTypeApplications` should imply `-fprint-explicit-runtime-reps`. This
 sounds reasonable (if a bit surprising) at first glance given how likely
 it is that you will experience `RuntimeRep` arguments with
 `TypeApplications`.

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


More information about the ghc-tickets mailing list