validity-path-0.2.0.2: Validity instances for Path

Safe HaskellNone
LanguageHaskell2010

Data.Validity.Path

Contents

Synopsis

Its path does not end in /.

Its path is not .

Its path does not contain '..'.

Parsing the path and rendering it again results in the same path.

Its path does not end in /.

Its path is not .

Its path is not ''

Its path is not .

Its path does not contain '..'.

Parsing the path and rendering it again results in the same path.

Its path is not ''

Its path does not contain '..'.

Parsing the path and rendering it again results in the same path.

Orphan instances

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