[Haskell-cafe] How to use STArray?
ketil+haskell at ii.uib.no
Fri Aug 26 02:59:28 EDT 2005
Udo Stenzel <u.stenzel at web.de> writes:
> 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?
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe