Re: [Haskell-cafe] File locked unnecessarily

2006-12-04 Thread Ian Lynagh
On Sun, Dec 03, 2006 at 08:13:37PM +0100, Arie Peterson wrote: Does anyone know what could cause this locking and/or how to prevent it? Nothing else springs to mind. Are you able to send an example that shows the problem? (obviously the smaller the example, the better). Thanks Ian

Re: [Haskell-cafe] File locked unnecessarily

2006-12-03 Thread Vyacheslav Akhmechet
Are you using hGetContents? If you are, take a closer look at the documentation. The function creates a lazy stream and until you finish reading from it the file will be in the semi-closed state (which means it will be locked). On 12/3/06, Arie Peterson [EMAIL PROTECTED] wrote: Hi, After a