Re: my experience with ghci debugger extensions

2009-02-05 Thread Pepe Iborra
Hello Peter, Your efforts are simply outstanding. Thanks a lot for sharing your experiences. I want to add a few comments: - Regarding your :logLocal, you should rename it to :stepLocal, open a ticket, and attach your patch. We should really try to get this into 6.10.2. :stepLocal is broken rig

Re: incorrect implementation of :show bindings?

2009-01-23 Thread Pepe Iborra
Hi Peter, It looks like a bug to me too. I tested it and 6.6 displays the correct behaviour, while 6.8.1 shows the bug. You should open a ticket if you haven't done so yet. Cheers, pepe On Thu, Jan 22, 2009 at 11:57 AM, Peter Hercek wrote: > Hi, > > Bindings displayed with ":show bindings" do n

Re: GHCi debugger status

2008-11-24 Thread Pepe Iborra
n the given function but only >>> within parents, so to say. For example, >> >> This looks like what I thought of as searching for values in dynamic stack >> (explained in my response to Pepe Iborra in this thread). > > Yes, first when I saw that your message I also

Re: GHCi debugger status

2008-11-24 Thread Pepe Iborra
On Mon, Nov 24, 2008 at 2:03 PM, Peter Hercek <[EMAIL PROTECTED]> wrote: > Simon Marlow wrote: >> >> Claus Reinke wrote: >>> >>> Perhaps someone could help me to understand how the debugger is supposed >>> to be used, as I tend to have this problem, too: >>> >>> - when I'm at a break point, I'd rea

Re: GHC 6.8.1 RC debugger only breaking on first evaluation of a function

2007-09-19 Thread Pepe Iborra
On 19/09/2007, at 10:05, Tomasz Zielonka wrote: If you don't find a better solution, then at least you can make it easier to perform the above sequence: $ cat ~/.ghci :def . readFile $ cat script :l Module :b 236 $ ghci GHCi, version 6.8.20070912: http://www.haskell.org/ghc/ :? for help Load

Re: GHC 6.8.1 RC debugger only breaking on first evaluation of a function

2007-09-18 Thread Pepe Iborra
Olivier, On 18/09/2007, at 20:26, Olivier Boudry wrote: Hi all, I just tried the new GHCi debugger. A great new feature of GHCi 6.8.1. When debugging a function, as for example the qsort function given as an example in the "3.5 The GHCi Debugger" documentation page, the debugger will only

Re: capturing ghci command output; :redir/:grep/:find

2007-09-08 Thread Pepe Iborra
Neat! /me is going to love :grep and :redir All these are for playing with the debugger. -- running main in tracing mode *Main> :main arg1 arg2 ... *Main> :maintraced arg1 arg2 ... -- stepping into main *Main> :mainstep arg1 arg2 ... -- eval to whnf Prelude> let li = map Just [1..3] Prelude> :

Re: Why hide Distribution.Compat.FilePath, or what to use instead?

2007-07-16 Thread Pepe Iborra
Hi Dimitry, you don't want to use Distribution.Compat.FilePath, it is not there anymore in future versions of Cabal, starting with 1.1.7. In my experience, the only things that you will miss in filepath are those exeExtension, dllExtension... functions. It may be reasonable to import thos

Re: [Haskell] Announce: Yi 0.2.0 released

2007-05-22 Thread Pepe Iborra
On 18/05/2007, at 16:27, Jean-Philippe Bernardy wrote: Hello, The following happened to Johannes Waldmann as trying to run yi, which embeds the GHC api to dynamically load code. [EMAIL PROTECTED]:~> yi yi: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header) The er

Re: GHC as a library - getting output from GHCI

2007-05-04 Thread Pepe Iborra
Mads On 04/05/2007, at 19:19, Mads Lindstrøm wrote: Hi Pepe I would have liked something cross-platform. Take a look at the unix-compat[1] package by Bjorn Bringert, although it looks like it won't help you. Maybe it can be extended. Also, if stmt contains an error, wrapStmt will not be

Re: GHC as a library - getting output from GHCI

2007-05-04 Thread Pepe Iborra
I believe that the trick is to wrap your stmt in a IO handler that captures stdout and returns it together with the value of your stmt. That is, something with a type: wrapStmt :: IO a -> IO (a,String) It should be easy to implement wrapStmt using System.Posix.Process. Then you just define

Re: Impressions on GHC debugger

2007-04-19 Thread Pepe Iborra
Thanks a lot for the feedback ! On 19/04/2007, at 15:59, Simon Marlow wrote: Thanks Alexey. I'm working on ironing out all the wrinkles at the moment. Some of the things you point out, like the prompt, are already on my ToDo list, and some others I didn't know about, but I'll look into t

Re: [Haskell-cafe] ghc-6.7.20070330 on Mac OS X

2007-04-01 Thread Pepe Iborra
(redirecting to glasgow-haskell-users) It is well known that the readline lib that comes with OS X is no good, and you need to use a replacement. A nice post from the blogosphere explaining all this: http://mult.ifario.us/articles/2006/10/17/ghc-6-6-and-mac-os-x- readline-quick-fix If th

Re: RULES and type classes

2007-03-29 Thread Pepe Iborra
On 29/03/2007, at 11:38, Mike Hamburg wrote: Is there any way to use RULES substitutions with type classes? I'm writing a reactive programming arrow (same idea as Yampa, different design goals), and it would help performance (and not just in the speed sense) to be able to tell when a value

Re: Feature proposal: ghc --full-flag-help ?

2007-03-13 Thread Pepe Iborra
A full listing of the available flags would be useful too for a hypothetic bash complete mode. I think that's how the bash completion package for darcs does it. And you know, with those three or four words compound flags, with their number rising to .. nearly a hundred?, this would be a very

Re: ghc 6.6 for mac os x (intel)

2007-02-06 Thread Pepe Iborra
I can confirm that the version of ghc in MacPorts installs perfectly (on a clean system): $ sudo port install ghc On 06/02/2007, at 17:35, Ian Lynagh wrote: On Tue, Feb 06, 2007 at 09:15:32AM -0600, Ariel Apostoli wrote: Kirsten Chevalier wrote: http://haskell.org/ghc/download_ghc_66.ht

Re: No intellisense in Visual Haskell

2007-01-15 Thread Pepe Iborra
Ganesh, In my experience as a user, it seems that Intellisense stops working in presence of compilation errors. Have you checked this? Cheers pepe On 15/01/2007, at 17:00, Sittampalam, Ganesh wrote: Hi, I've installed Visual Haskell and am having some trouble with the Intellisense funct

Re: Debugging on Mac OS X

2006-10-24 Thread Pepe Iborra
For general info on debugging, make sure to check the wiki page: http://www.haskell.org/haskellwiki/Debugging And while you are there maybe you can add some notes on your experience. In case you want to play with the GHCi debugger, I've been updating the repository with the latest ghc 6.6 pat

Re: Circular dependency between the compiler and TH?

2006-08-19 Thread Pepe Iborra
Joel, I feel your pain. In my (very short) experience, the ghc build system can be fragile and impredictable some times. Randomly, it will decide to do a stage2 build in stage1, and this is clearly your case today Joel. The issue with indices and bounds is an actual issue, but can be solve