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
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
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
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
.
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
___
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
l enough?
Cheers
pepe
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
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
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
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
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
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
"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
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
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
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
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
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
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> :
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
aded: Main.
*Main>
Cheers
pepe
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
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
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
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 "
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
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
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
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
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
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
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
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
32 matches
Mail list logo