Fernan Bolando wrote:
Program error: Prelude.!!: index too large
This is not very informative. It did not give me a hint which function
was causing this.
In addition to the debugging methods that have been mentioned, the
"Safe" library provides a way to write the code more robustly and/or
informatively:
http://hackage.haskell.org/package/safe
http://community.haskell.org/~ndm/safe/
Among other things, it provides replacements for the (!!) operator which
would have likely have helped in this case.
Anton
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe