#95: GHCi editor binding with ":e"
--------------------------------+-------------------------------------------
    Reporter:  martijnislief    |        Owner:  nobody     
        Type:  feature request  |       Status:  assigned   
    Priority:  normal           |    Milestone:  6.8 branch 
   Component:  GHCi             |      Version:  None       
    Severity:  minor            |   Resolution:  None       
    Keywords:                   |   Difficulty:  Easy (1 hr)
          Os:  Unknown          |     Testcase:             
Architecture:  Unknown          |  
--------------------------------+-------------------------------------------
Comment (by guest):

 actually, it turns out you can define all this even back in 6.4.1 (had i
 only known back then!-). you need to define your own :e command (:def is
 available), and ghci 6.4.1 is somewhat annoying about command names that
 are prefixes of each other. have a look at

 http://www.cs.kent.ac.uk/people/staff/cr3/toolbox/haskell/dot-
 squashed.ghci641

 http://www.cs.kent.ac.uk/people/staff/cr3/toolbox/haskell/dot-
 squashed.ghci

 since .ghci files are not very readable with definitions squashed into
 single lines, you might want to check the explanations of the latter file
 in

 http://www.haskell.org/pipermail/haskell-cafe/2007-September/032260.html

 (note: the names in the 6.4.1 version differ from those in the described
 version)

 i'm not yet sure whether being able to define :e means that it shouldn't
 be part of ghci at all (and this ticket be closed), or whether there are
 still any advantages to having it built in? perhaps ghci releases should
 have a selection of .ghci files with useful definitions?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/95#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to