[GHC] #11994: ghci not applying defaulting when showing type

GHC ghc-devs at haskell.org
Thu Apr 28 12:25:27 UTC 2016


#11994: ghci not applying defaulting when showing type
-------------------------------------+-------------------------------------
        Reporter:  j.waldmann        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  7.10.3
      Resolution:                    |             Keywords:
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 kanetw):

 Fractional implies Num, and Num can default.

 I don't know if `:set +t` should show the defaulted or polymorphic type. I
 always interpreted it as "show the expression's :t afterwards"

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


More information about the ghc-tickets mailing list