On 5/4/07, <b class="gmail_sendername">Monang Setyawan</b> <<a href="mailto:monang@gmail.com">monang@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 5/5/07, Stefan O'Rear <<a href="mailto:stefanor@cox.net">stefanor@cox.net</a>> wrote:<br>> On Sat, May 05, 2007 at 11:36:16AM +0700, Monang Setyawan wrote:<br>> > Hi, I'm a beginner Haskell user.
<br>> ><br>> > Is there any way to trace/debug the function application in GHC?<br>><br>> Absolutely!<br>><br>> stefan@stefans:/tmp$ ghci X.hs<br>> ___ ___ _<br>> / _ \ /\ /\/ __(_)
<br>> / /_\// /_/ / / | | GHC Interactive, version 6.7.20070502, for Haskell 98.<br>> / /_\\/ __ / /___| | <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a><br>> \____/\/ /_/\____/|_| Type :? for help.
<br>><br>> Loading package base ... linking ... done.<br>> [1 of 1] Compiling Main ( X.hs, interpreted )<br>> Ok, modules loaded: Main.<br>> *Main> :break fac<br><br>Great!! Thanks, it really helps.
<br>I should update my GHC to the newest version (I use the old 6.4.2<br>with no break command)<br><br>Is there any editor/IDE supporting this break command? It should be<br>cooler if we can debug functions just by placing mark in the line.
<br><br>><br>> Stefan<br>><br><br><br>--<br>Demi masa..<br><br><br>--<br>Demi masa..<br>_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org
</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote></div><br><br>I've only written trivial applications and functions in haskell. But the title of this thread got me thinking.
<br>
<br>
In an imperative language you have clear steps, states, variables to watch, etc. <br>
What techniques/strategies might one use for a functional language?
<br>
<br>
--ryan<br>