2009/11/4 Philippos Apolinarius <phi50...@yahoo.ca> > Jason Dusek wrote: > > How do you read in the IOUArray? By parsing a character > > string or do you treat the file as binary numbers or ... ? > > I always pare the file. Parsing the file has the advantage of > alowing me to have files of any format.
From this description, it's hard for me to see what is hard for you. When you "parse the file" I imagine you in face "parse a String" or "parse a lazy ByteString" (a much better idea). Take that `String` or `ByteString` and pass it to an `ST` computation that parses it to make an `ST` array and then operates on the array. -- Jason Dusek _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe