[GHC] #8113: Cannot override ghci builtin commands with :def[!]

GHC ghc-devs at haskell.org
Thu Aug 29 01:59:42 UTC 2013


#8113: Cannot override ghci builtin commands with :def[!]
-------------------------------------+-------------------------------------
        Reporter:  duncan            |            Owner:
            Type:  bug               |           Status:  closed
        Priority:  normal            |        Milestone:  7.8.1
       Component:  GHCi              |          Version:  7.6.3
      Resolution:  fixed             |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  Other             |       Difficulty:  Easy (less than 1
       Test Case:                    |  hour)
  ghci/scripts/T8113                 |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 I got caught off guard by hvr's change because I had a ghci macro `:tsu`
 I'd forgotten about which meant that every time I tried to `:t` something
 I got a weird error.  Took me a while to figure out that it was my `.ghci`
 file at fault.

 I suppose I could learn to use `:type` or `::t` but I'd prefer not to have
 to.  And I don't want to have to give up macros starting with t, and every
 other single-letter ghci command that I use.  Can we please have macros
 override built-in commands, but still have `:t` expand to `:type`?

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




More information about the ghc-tickets mailing list