On Fri, May 04, 2007 at 10:44:15PM -0700, Ryan Dickie wrote:
> 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?

I personally most often use a divide-and-conquer approach.  I pick a
point about halfway down the call stack, and add trace calls.  If the
subproblems are handled correctly, narrow scope to higher levels;
otherwise narrow to lower levels.  Repeat until you have a single
misbehaving function.

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

Reply via email to