On 5/4/07, Monang Setyawan <[EMAIL PROTECTED]> wrote:

On 5/5/07, Stefan O'Rear <[EMAIL PROTECTED]> wrote:
> On Sat, May 05, 2007 at 11:36:16AM +0700, Monang Setyawan wrote:
> > Hi, I'm a beginner Haskell user.
> >
> > Is there any way to trace/debug the function application in GHC?
>
> Absolutely!
>
> [EMAIL PROTECTED]:/tmp$ ghci X.hs
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |    GHC Interactive, version 6.7.20070502, for
Haskell 98.
> / /_\\/ __  / /___| |    http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|    Type :? for help.
>
> Loading package base ... linking ... done.
> [1 of 1] Compiling Main             ( X.hs, interpreted )
> Ok, modules loaded: Main.
> *Main> :break fac

Great!! Thanks, it really helps.
I should update my GHC to the newest version (I use the old  6.4.2
with no break command)

Is there any editor/IDE supporting this break command? It should be
cooler if we can debug functions just by placing mark in the line.

>
> Stefan
>


--
Demi masa..


--
Demi masa..
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe



I've only written trivial applications and functions in haskell. But the
title of this thread got me thinking.

In an imperative language you have clear steps, states, variables to watch,
etc.
What techniques/strategies might one use for a functional language?

--ryan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to