Re: [GHC] #2050: GHCi should keep a persistent history file

2008-03-12 Thread GHC
#2050: GHCi should keep a persistent history file
-+--
 Reporter:  ajd  |  Owner: 
 Type:  feature request  | Status:  new
 Priority:  normal   |  Milestone:  6.10 branch
Component:  GHCi |Version:  6.8.2  
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Comment (by ajd):

 Looks good to me.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050#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


Re: [GHC] #2050: GHCi should keep a persistent history file

2008-03-12 Thread GHC
#2050: GHCi should keep a persistent history file
-+--
 Reporter:  ajd  |  Owner: 
 Type:  feature request  | Status:  closed 
 Priority:  normal   |  Milestone:  6.10 branch
Component:  GHCi |Version:  6.8.2  
 Severity:  normal   | Resolution:  fixed  
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Changes (by simonmar):

  * status:  new = closed
  * resolution:  = fixed

Comment:

 Fixed:

 {{{
 Wed Mar 12 14:57:24 PDT 2008  Simon Marlow [EMAIL PROTECTED]
   * #2050: save the GHCi history in ~/.ghc/ghci_history
   Modified version of Judah's patch
 }}}

 I decided to put the history file in `~/.ghc/ghci_history`, as we're
 starting to use `~/.ghc` consistently for GHC-related configuration files
 now.

 Also I limited the history to 100 items only when saving the file, during
 a GHCi run there is no limit (as before).

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050#comment:8
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


Re: [GHC] #2050: GHCi should keep a persistent history file

2008-02-15 Thread GHC
#2050: GHCi should keep a persistent history file
-+--
 Reporter:  ajd  |  Owner: 
 Type:  feature request  | Status:  new
 Priority:  normal   |  Milestone:  6.10 branch
Component:  GHCi |Version:  6.8.2  
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Unknown  |  
-+--
Changes (by igloo):

  * difficulty:  = Unknown
  * milestone:  = 6.10 branch

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050#comment:5
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


Re: [GHC] #2050: GHCi should keep a persistent history file

2008-01-18 Thread GHC
#2050: GHCi should keep a persistent history file
+---
Reporter:  ajd  |Owner: 
Type:  feature request  |   Status:  new
Priority:  normal   |Milestone: 
   Component:  GHCi |  Version:  6.8.2  
Severity:  normal   |   Resolution: 
Keywords:   | Testcase: 
Architecture:  Unknown  |   Os:  Unknown
+---
Changes (by ajd):

  * owner:  ajd =

Comment:

 Judah, you were right, it was much easier to write the bindings for
 read_history and write_history. I wrote the bindings (basically a copy and
 paste from the add_history binding). I also wrote a simple patch to
 InteractiveUI.hs to implement the actually history tracking that seems to
 work correctly, I don't know if we need to check that the file exists or
 anything.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050#comment:4
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


[GHC] #2050: GHCi should keep a persistent history file

2008-01-16 Thread GHC
#2050: GHCi should keep a persistent history file
+---
Reporter:  ajd  |   Owner: 
Type:  feature request  |  Status:  new
Priority:  normal   |   Component:  GHCi   
 Version:  6.8.2|Severity:  normal 
Keywords:   |Testcase: 
Architecture:  Unknown  |  Os:  Unknown
+---
 It would be nice if GHCi kept a persistent history of commands like bash
 does. This would be especially useful in testing: if one is trying to get
 a certain command to work, and the command is at all complicated, it is
 annoying to have to copy and paste or retype the command every time you
 want to see if the function works.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050
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


Re: [GHC] #2050: GHCi should keep a persistent history file

2008-01-16 Thread GHC
#2050: GHCi should keep a persistent history file
+---
Reporter:  ajd  |Owner: 
Type:  feature request  |   Status:  new
Priority:  normal   |Milestone: 
   Component:  GHCi |  Version:  6.8.2  
Severity:  normal   |   Resolution: 
Keywords:   | Testcase: 
Architecture:  Unknown  |   Os:  Unknown
+---
Comment (by judah):

 I have also often wished for this.  The header `readline/history.h`
 provides the functions `read_history` and `write_history` which are also
 present in editline.  This task will be easy to implement if we add those
 to the readline and editline packages.  (Although, a pure Haskell
 implementation would probably also be pretty easy to write.)

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050#comment:2
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


Re: [GHC] #2050: GHCi should keep a persistent history file

2008-01-16 Thread GHC
#2050: GHCi should keep a persistent history file
+---
Reporter:  ajd  |Owner:  ajd
Type:  feature request  |   Status:  new
Priority:  normal   |Milestone: 
   Component:  GHCi |  Version:  6.8.2  
Severity:  normal   |   Resolution: 
Keywords:   | Testcase: 
Architecture:  Unknown  |   Os:  Unknown
+---
Changes (by ajd):

  * owner:  = ajd

Comment:

 I think System.Posix.Readline already has a binding to those functions via
 the addHistory function. I just finished writing a simple implementation;
 I'll post a patch when it builds and tests.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2050#comment:3
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