[GHC] #10972: Add a :binfo (beginner info) GHCi command

GHC ghc-devs at haskell.org
Mon Oct 19 13:02:35 UTC 2015


#10972: Add a :binfo (beginner info) GHCi command
-------------------------------------+-------------------------------------
        Reporter:  kanetw            |                Owner:  kanetw
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10963            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 Here's an idea: use the `default` list. We could even add `(->)` to that
 list. It would be otherwise pointless, but by putting it in the list, we
 get the specialization behavior above. And it's user-customizable. So if,
 say, an instructor is using a custom list type or introducing the
 `Foldable Maybe` instance, that person could then just change the
 `default` list and get the new specializations. The `default` list also
 tends to be somewhat short, yielding about the right number of
 specializations in the output.

 We could also consider just adding this behavior to `:info`. Perhaps a
 quick user poll is in order?

 Nitpick: I would prefer we "specialise" instead of "specialize". Since
 we're writing the '''Glasgow''' Haskell Compiler, it seems we should use
 the variant of English spoken (wait -- English spoken in Glasgow is nigh
 incomprehensible, to me at least)... er... ''written'' in Glasgow.

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


More information about the ghc-tickets mailing list