Re: single-stepping and infinite recursion

2007-11-21 Thread pepe
eak-on-error 2. run your expression with :trace (eg :trace loop 'a') 3. hit Ctrl-C while your program is stuck in the loop to have the debugger break in the loop. 4: use :history and :back to find out where the loop is located and why. Cheers pepe On 20/11/2007, at 16:09, Wolfga

Re: single-stepping and infinite recursion

2007-11-27 Thread pepe
On 26/11/2007, at 16:06, Denis Bueno wrote: In the past few days I'd been wondering about how to detect infinite loops myself, so thanks for this advice, pepe! I've put pepe's advice on the Wiki under Debugging: http://haskell.org/haskellwiki/Debugging Please feel free to fles

Re: Top-level bindings for unlifted types

2007-11-28 Thread pepe
So what's the verdict w.r.t. unlifted things bound by the debugger? Right now it's quite easy, for example: Prelude> :m +Data.IORef Prelude Data.IORef> p <- newIORef False Prelude Data.IORef> :p p p = GHC.IOBase.IORef (GHC.STRef.STRef (_t1::GHC.Prim.MutVar# GHC.Prim.RealWorld Bool)) Prelude D

Re: [Haskell-cafe] retrospective on 'seq' -> 'unsafeSeq' ?

2008-04-14 Thread pepe
fair chunk of it, so it could be added given not too much | work. Yes, as you say, the debugger has most of the machinery. I just don't know what it'd take to make it a callable function. Pepe? Someone might want to make a feature-request ticket for this, with as much backgrou

Re: runstmt within API

2008-04-23 Thread pepe
. A way to tell runStmt that you don't want the result outputted to stdout is to enable the flag -no-print-bind-result. It would be nice to wrap this code in a more friendly API. Hopefully the SoC project will take care of that ! Cheers pepe ___

Re: [Haskell-cafe] retrospective on 'seq' -> 'unsafeSeq' ?

2008-04-29 Thread pepe
On 30/04/2008, at 0:19, Ian Lynagh wrote: On Mon, Apr 14, 2008 at 01:22:42PM +0200, pepe wrote: Another question is where in the package hierarchy would this function live. Since the code it would use is in the ghc package, it would introduce a dependency on it. And I am fairly sure that

Re: cross module optimization issues

2008-11-28 Thread pepe
l enough? Cheers pepe ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: my experience with ghci debugger extensions

2009-02-09 Thread pepe
Hi, Simon Marlow wrote: If you felt like working on this yourself, possibly with Pepe, then we'd be happy to support in any way we can. Thanks. It may happen though it is not probable. I do not know the code so anything non-trivial is a significant effort and my free weekend

Re: how dynamic stack approximation works

2009-02-18 Thread pepe
On 17/02/2009, at 9:46, Simon Marlow wrote: Peter Hercek wrote: pepe wrote: Having (a kind of messy approximation of) a dynamic stack is possible with a variant of the cost center stacks mechanism used for profiling. But the downside is that code and libraries would need to be compiled

Re: Is there a way to find out the type of a variable inside a function?

2006-08-17 Thread pepe
Visual Haskell can do that. And you are right, in my experience it can be very useful when 'reading' code. http://haskell.org/visualhaskell/ On 17/08/06, Andrew Wilcox <[EMAIL PROTECTED]> wrote: I'm learning Haskell, and I've been reading through various source code examples. I find the ":typ

Re: GHCi hacking

2006-08-18 Thread pepe
If you have gone that far and modified ghci, wouldn't it be easier to disable the :load command and hardwire the loading of the UserLayer module ? 1) CAFs (Constant Applicative Form) are essentially top level bindings. Top level bindings are closures, as anything in ghc, and they are in suspended

Re: Digraph.lhs broken?

2006-08-19 Thread pepe
I have that issue with Darcs too. Mac Os Intel here. Is that related maybe ? On 19/08/06, Joel Reymont <[EMAIL PROTECTED]> wrote: What's wierd is that I cannot run darcs annotate to see what patch changed the bit that's failing: darcs annotate -v compiler/hsSyn/Convert.lhs darcs failed: There

Re: 6.4.3 and threaded RTS problems

2006-08-24 Thread pepe
"Worse is Better" gives an entertaining view on this fact. pepe On 24/08/06, skaller <[EMAIL PROTECTED]> wrote: On Thu, 2006-08-24 at 08:56 +0100, Simon Marlow wrote: > Hi Folks, > > Roman Leshchinskiy and I looked into the 6.4.3 crashes on Sparc/Solaris > yesterday

Re: Impressions on GHC debugger

2007-04-19 Thread Pepe Iborra
not so sure anymore. Using line numbers is not as bad as I thought. The debugger is a nice addition to GHC, and I look forward to the debugger being integrated into the Emacs Haskell mode! Take a look at Shim[1]. The debugger integration will be there soon (well, sooner or later). [1] http://shim.haskellco.de Cheers pepe ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

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: 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 wil

Re: [Haskell] Announce: Yi 0.2.0 released

2007-05-22 Thread Pepe Iborra
tting-started-with- cairo/#comments Btw, Gregory, the guy who takes care of Haskell related MacPorts, is already working on a fixed gtk2hs port. Cheers pepe ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskel

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

2007-07-16 Thread Pepe Iborra
mport those from Compat.FilePath if you want, because they are kept (in another module I believe) in Cabal 1.1.7. Or better, update to Cabal 1.1.7 and import theM from the right module To unhide the module, you need to list Cabal as a dependency in the Cabal descriptor. Cheers pepe On 16/07

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: GHC 6.8.1 RC debugger only breaking on first evaluation of a function

2007-09-18 Thread Pepe Iborra
need of feedback and bug reports reg. the debugger. pepe ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

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

2007-09-19 Thread Pepe Iborra
aded: Main. *Main> Cheers pepe ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

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: 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: 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 "

Re: my experience with ghci debugger extensions

2009-02-05 Thread Pepe Iborra
helped in this occasion: the changes you needed required modifying the API. Finallly, please do not forget to add a link to this in the GHCi Debugger wiki page at http://haskell.org/haskellwiki/GHC/GHCi_debugger and/or at the debugging page at http://haskell.org/haskellwiki/Debugging Thanks, pep

Re: Circular dependency between the compiler and TH?

2006-08-19 Thread Pepe Iborra
that you see -DGHCI -DBREAKPOINT in your stage1 build, that's bad. Cheers pepe On 19/08/2006, at 20:56, Joel Reymont wrote: On Aug 19, 2006, at 7:30 PM, Simon Peyton-Jones wrote: I can't tell just what you are doing, but somehow you seem to be building a stage-2 compiler in stag

Re: Debugging on Mac OS X

2006-10-24 Thread Pepe Iborra
c 6.6 patches these days, so it is still alive and working. Unfortunately, you still will need to compile it yourself (just to make it clear, this means compiling a custom version of GHC). Cheers pepe On 23/10/2006, at 14:42, Luke Worth wrote: Hi all, I just installed GHC 6.6 using th

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 Intelli

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: Feature proposal: ghc --full-flag-help ?

2007-03-13 Thread Pepe Iborra
very desirable thing to have, much more so than the darcs one. On the other hand, both --full-flag-help and the bash completion package mode seem like a very trivial hacking task. Any GHC hackers around? /me hides under a pile of work and other diversions Cheers pepe On 13/03/2007, at

Re: RULES and type classes

2007-03-29 Thread Pepe Iborra
Interactive, version 6.7.20070303, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ... linking ... done. [1 of 1] Skipping Rules( rules.hs, rules.o ) Ok, modules

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

2007-04-01 Thread Pepe Iborra
that doesn't help, please post the errors that you get when building the readline package. Cheers pepe On 01/04/2007, at 16:33, Ruben Zilibowitz wrote: I am trying to build this version of GHC on Mac OS X. I'm currently using GHC 6.6. The build is failing with the following err