ReadWriteMode not AppendMode
AppendMode does not allow seeking..
This commit is contained in:
parent
76b46afed1
commit
db79b69aa0
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ runLocal runmode runner a = case a of
|
||||||
-- a client.
|
-- a client.
|
||||||
Client -> ta
|
Client -> ta
|
||||||
storefile dest (Offset o) (Len l) b = liftIO $ do
|
storefile dest (Offset o) (Len l) b = liftIO $ do
|
||||||
withBinaryFile dest AppendMode $ \h -> do
|
withBinaryFile dest ReadWriteMode $ \h -> do
|
||||||
when (o /= 0) $
|
when (o /= 0) $
|
||||||
hSeek h AbsoluteSeek o
|
hSeek h AbsoluteSeek o
|
||||||
L.hPut h b
|
L.hPut h b
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue