[GHC] #13795: :kind! is not expanding type synonyms anymore

GHC ghc-devs at haskell.org
Wed Jun 7 23:26:18 UTC 2017


#13795: :kind! is not expanding type synonyms anymore
-------------------------------------+-------------------------------------
        Reporter:  Hjulle            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  8.0.2
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Replying to [comment:2 simonpj]:
 > Did `:kind!` ever expand synonyms?
 >
 > The user manual claims that it does, but I can see no evidence that it
 ever did.

 It did in GHC 7.8.4:

 {{{
 GHCi, version 7.8.4: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 λ> type A = ()
 λ> :kind! A
 A :: *
 = ()
 }}}

 But not in GHC 7.10.3:

 {{{
 GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
 λ> type A = Bool
 λ> :kind! A
 A :: *
 = A
 }}}

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


More information about the ghc-tickets mailing list