-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Validity instances for Path
--
-- Please see README.md
@package validity-path
@version 0.1.0.0
module Data.Validity.Path
-- | An absolute path to a file is valid if:
--
--
-- - Its path is an absolute path
-- - Its path does not have a trailing path separator
-- - Its path is valid according to FilePaths definition.
-- - Its path does not contain '..'.
-- - Parsing the path and rendering it again results in the same
-- path.
--
-- | A relative path to a file is valid if:
--
--
-- - Its path is a relative path
-- - Its path does not have a trailing path separator
-- - Its path is valid according to FilePaths definition.
-- - Its path is not .
-- - Its path does not contain '..'.
-- - Parsing the path and rendering it again results in the same
-- path.
--
-- | An absolute path to a directory is valid if:
--
--
-- - Its path is an absolute path
-- - Its path has a trailing path separator
-- - Its path is valid according to FilePaths definition.
-- - Its path does not contain '..'.
-- - Parsing the path and rendering it again results in the same
-- path.
--
-- | A relative path to a directory is valid if:
--
--
-- - Its path is a relative path
-- - Its path has a trailing path separator
-- - Its path is valid according to FilePaths definition.
-- - Its path is not .
-- - Its path does not contain '..'.
-- - Parsing the path and rendering it again results in the same
-- path.
--
instance Data.Validity.Validity (Path.Internal.Path Path.Abs Path.File)
instance Data.Validity.Validity (Path.Internal.Path Path.Rel Path.File)
instance Data.Validity.Validity (Path.Internal.Path Path.Abs Path.Dir)
instance Data.Validity.Validity (Path.Internal.Path Path.Rel Path.Dir)