[Haskell-cafe] Debugging methods for haskell

Henning Thielemann lemming at henning-thielemann.de
Fri Jul 17 18:04:19 EDT 2009

On Thu, 16 Jul 2009, Fernan Bolando wrote:

> Hi all
> I recently used 2 hours of work looking for a bug that was causing
> Program error: Prelude.!!: index too large

A good way to avoid such problems is to avoid partial functions at all. 
(!!) is also inefficient. Is it possible to define the function in terms 
of foldl?

More information about the Haskell-Cafe mailing list