HPath.IO: minor doc fix

This commit is contained in:
Julian Ospald 2016-05-10 12:05:55 +02:00
parent 05fcad14f1
commit ee3ace362b
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 3 additions and 4 deletions

View File

@ -341,7 +341,7 @@ recreateSymlink symsource newsym
-- - `SameFile` if source and destination are the same file (`HPathIOException`) -- - `SameFile` if source and destination are the same file (`HPathIOException`)
-- - `AlreadyExists` if destination already exists -- - `AlreadyExists` if destination already exists
-- --
-- Note: calls `sendfile` -- Note: calls `read`/`write`
copyFile :: Path Abs -- ^ source file copyFile :: Path Abs -- ^ source file
-> Path Abs -- ^ destination file -> Path Abs -- ^ destination file
-> IO () -> IO ()
@ -358,8 +358,7 @@ copyFile from to = do
-- --
-- Safety/reliability concerns: -- Safety/reliability concerns:
-- --
-- * not atomic -- * not atomic, since it uses read/write
-- * falls back to delete-copy method with explicit checks
-- --
-- Throws: -- Throws:
-- --
@ -370,7 +369,7 @@ copyFile from to = do
-- - `InvalidArgument` if source file is wrong type (directory) -- - `InvalidArgument` if source file is wrong type (directory)
-- - `SameFile` if source and destination are the same file (`HPathIOException`) -- - `SameFile` if source and destination are the same file (`HPathIOException`)
-- --
-- Note: calls `sendfile` -- Note: calls `read`/`write`
copyFileOverwrite :: Path Abs -- ^ source file copyFileOverwrite :: Path Abs -- ^ source file
-> Path Abs -- ^ destination file -> Path Abs -- ^ destination file
-> IO () -> IO ()