On 5/4/07, <b class="gmail_sendername">Monang Setyawan</b> &lt;<a href="mailto:monang@gmail.com">monang@gmail.com</a>&gt; 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&#39;Rear &lt;<a href="mailto:stefanor@cox.net">stefanor@cox.net</a>&gt; wrote:<br>&gt; On Sat, May 05, 2007 at 11:36:16AM +0700, Monang Setyawan wrote:<br>&gt; &gt; Hi, I&#39;m a beginner Haskell user.
<br>&gt; &gt;<br>&gt; &gt; Is there any way to trace/debug the function application in GHC?<br>&gt;<br>&gt; Absolutely!<br>&gt;<br>&gt; stefan@stefans:/tmp$ ghci X.hs<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;___&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ___ _<br>&gt;&nbsp;&nbsp; / _ \ /\&nbsp;&nbsp;/\/ __(_)
<br>&gt;&nbsp;&nbsp;/ /_\// /_/ / /&nbsp;&nbsp;| |&nbsp;&nbsp;&nbsp;&nbsp;GHC Interactive, version 6.7.20070502, for Haskell 98.<br>&gt; / /_\\/ __&nbsp;&nbsp;/ /___| |&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a><br>&gt; \____/\/ /_/\____/|_|&nbsp;&nbsp;&nbsp;&nbsp;Type :? for help.
<br>&gt;<br>&gt; Loading package base ... linking ... done.<br>&gt; [1 of 1] Compiling Main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( X.hs, interpreted )<br>&gt; Ok, modules loaded: Main.<br>&gt; *Main&gt; :break fac<br><br>Great!! Thanks, it really helps.
<br>I should update my GHC to the newest version (I use the old&nbsp;&nbsp;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>&gt;<br>&gt; Stefan<br>&gt;<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&#39;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>