From ce7fdcdcd6fc175df00d43b50b8a788411a28082 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 5 Jun 2016 22:04:16 +0200 Subject: [PATCH] Move documentation note about RecursiveFailure where it belongs --- src/HPath/IO.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/HPath/IO.hs b/src/HPath/IO.hs index 6c90152..682a657 100644 --- a/src/HPath/IO.hs +++ b/src/HPath/IO.hs @@ -227,7 +227,9 @@ data FileType = Directory -- -- On `CollectFailures` skips errors in the recursion and keeps on recursing. -- However all errors are collected in the `RecursiveFailure` error type, --- which is raised finally if there was any error. +-- which is raised finally if there was any error. Also note that +-- `RecursiveFailure` does not give any guarantees on the ordering +-- of the collected exceptions. data RecursiveErrorMode = FailEarly | CollectFailures @@ -263,9 +265,6 @@ data CopyMode = Strict -- ^ fail if any target exists -- the operation has completed. Permissions of existing directories are -- fixed. -- --- Note that there is no guaranteed ordering of the exceptions --- contained within `RecursiveFailure` in `CollectFailures` RecursiveErrorMode. --- -- Safety/reliability concerns: -- -- * not atomic