<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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 implement the BTree algorithm, GHC compiler did not accept hSeek and other IO operations.<br><br>D:\Programs\GHC-PROGS\docs\textut&gt;ghc btree.hs --make<br>[1 of 1] Compiling Main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( btree.hs, btree.o )<br>Linking btree.exe ...<br><br>D:\Programs\GHC-PROGS\docs\textut&gt;btree.exe<br>btree.exe: teste.txt: hSeek: illegal operation (seek operations on text-mod<br>dles are not allowed on this platform)<br><br>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 make file operations work on Windows? I need random access to text files. <br><br></td></tr></table><br>
      <hr size=1><a href="http://ca.promos.yahoo.com/newmail/overview2/"><b>All new Yahoo! Mail - </b></a>Get a sneak peak at messages with a handy reading pane.