[GHC] #8357: Pretty printing of kind-involving inferred types

GHC ghc-devs
Thu Oct 3 12:00:45 UTC 2013


#8357: Pretty printing of kind-involving inferred types
-------------------------------------+------------------------------------
        Reporter:  ksf               |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.7
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by simonpj):

 This commit improves matters a lot
 {{{
 commit 66c5ddba449e78a174e989ea35783eb6c793e483
 Author: unknown <simonpj at MSRC-4971295.europe.corp.microsoft.com>
 Date:   Tue Oct 1 16:34:00 2013 +0100

     Improve pretty-printing of types

     * The main change is to suppress printing (in types) of
          kind for-alls
          kind applications
       The new flag -fprint-explicit-kinds prints them as before
       (by analogy with the existing -fprint-explicit-foralls)

     * I also took advantage of the fact that SDoc now has access
       to DynFlags, to tidy up the way in which explicit for-alls
       are printed.  Instead of passing a boolean flag around, we
       now simply consult the DynFlags.  Much neater.

     I still need to add documentation for the flag
 }}}

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



More information about the ghc-tickets mailing list