LIB: improve haddock comments
This commit is contained in:
parent
51fffabe22
commit
a4849cf044
@ -69,6 +69,12 @@ data FileOperation = FCopy DTInfoZipper DTInfoZipper
|
|||||||
| None
|
| None
|
||||||
|
|
||||||
|
|
||||||
|
-- |Directory copy modes.
|
||||||
|
-- Strict means we fail if the target directory already exists.
|
||||||
|
-- Merge means we keep the old directories/files, but overwrite old files
|
||||||
|
-- on collision.
|
||||||
|
-- Replace means the target directory will be removed recursively before
|
||||||
|
-- performing the copy operation.
|
||||||
data DirCopyMode = Strict
|
data DirCopyMode = Strict
|
||||||
| Merge
|
| Merge
|
||||||
| Replace
|
| Replace
|
||||||
@ -85,9 +91,7 @@ runFileOp _ = return ()
|
|||||||
|
|
||||||
|
|
||||||
-- TODO: allow renaming
|
-- TODO: allow renaming
|
||||||
-- |Copies a directory to the given destination. If the target directory
|
-- |Copies a directory to the given destination.
|
||||||
-- already exists, performs a semi-defined merge, overwriting already
|
|
||||||
-- existing files.
|
|
||||||
copyDir :: DirCopyMode
|
copyDir :: DirCopyMode
|
||||||
-> DTInfoZipper -- ^ source dir
|
-> DTInfoZipper -- ^ source dir
|
||||||
-> DTInfoZipper -- ^ destination dir
|
-> DTInfoZipper -- ^ destination dir
|
||||||
|
Loading…
Reference in New Issue
Block a user