
15 Jul
2009
15 Jul
'09
7:59 p.m.
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