Hi, A student of mine needs to do some work with random-access files files, and the standard operations in the IO module should do. But we noticed that there is no current provision in Hugs for: 1 reading and writing on the same file (IOMode with support for ReadWriteMode) 2 hSeek. Couldn't it be written directly using hGetPosn and hSetPosn? It would need some extra checks for EOF, I guess. 3 there is no way in the library to read the current position as an Int/Integer and store it in another file. This is more a library limitation, i.e. just hGetPosn isn't enough since HandlePosn is abstract. It would probably be enough if HandlePosn derived Enum too... We have been using the Binary library by Malcolm Wallace in GHC, but we would like something simpler, that also worked on hugs. Is there any important reason why these aren't supported, in Hugs, especially (1)? Is anyone working on these? Thanks, Andre.
