[Haskell-cafe] hSeek in Windows

2009-11-01 Thread Philippos Apolinarius
As many people guess, I am trying to port programs from Clean 1.3 to Haskell (and also to Clean 2.2, which is easier, but not much easier). Late Professor Wellesley wrote an interesting data base manager in Clean 1.3 that I would like to see in Haskell and Clean 2.2. However, when I tried to

Re: [Haskell-cafe] hSeek in Windows

2009-11-01 Thread Neil Mitchell
Hi Philippos, The secret is there in the error message: seek operations on text-moddles are not allowed on this platform You need to set your file in to binary mode, with hSetBinaryMode (http://haskell.org/hoogle/?hoogle=hSetBinaryMode) or openBinaryFile

Re: [Haskell-cafe] hSeek in Windows

2009-11-01 Thread Svein Ove Aas
On Sun, Nov 1, 2009 at 9:44 PM, Philippos Apolinarius phi50...@yahoo.ca wrote: To make a long story short, the program compiles, but does not run. This is interesting, because when Clean compiles an input/output operation it certainly executes it. In any case, what I should do in order to