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

View File

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