RE: [Haskell-cafe] Opening the same file multiple times

12 Dec
2005
12 Dec
'05
10:27 a.m.
On 12 December 2005 14:01, Einar Karttunen wrote:
On 12.12 12:06, Duncan Coutts wrote:
It states in the Haskell Report 21.2.3:
Thanks, for the pointer, but am looking for an extension in the non-haskell98 API to do it.
It seems that things are quite problematic:
1) Use openFile or GHC.Handle.openFd
Works in Hugs, fails as the standard mandates in GHC due to locking. This is fine.
You can trick openFd into not locking the file by passing (Just RawDevice) as the file type. Ugly, but should work. Cheers, Simon
7100
Age (days ago)
7100
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow