
26 Aug
2005
26 Aug
'05
2:59 a.m.
Udo Stenzel
You messed the argument order to readArray up. Even with that repaired, you'll need a type signature somewhere to help ghc resolve the overloading of newArray and readArray, which is surprisingly tricky due to the "s" that must not escape.
I have struggled with this in the past, perhaps there is room for improvement in GHC's error messages? Instead of just talking about 's escaping', perhaps it could hint that a specific type declaration is what is needed? -k -- If I haven't seen further, it is by standing in the footprints of giants