validity-path-0.2.0.0: Validity instances for Path

Safe HaskellNone
LanguageHaskell2010

Data.Validity.Path

Contents

Synopsis

Documentation

Orphan instances

Validity (Path Abs File) Source #

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.
Validity (Path Abs Dir) Source #

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.
Validity (Path Rel File) Source #

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.
Validity (Path Rel Dir) Source #

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.