validity-path-0.4.0.1: Validity instances for Path

Safe HaskellNone
LanguageHaskell2010

Data.Validity.Path

Contents

Synopsis

    Its path is not .

    Its path does not contain '..'.

    The path contains no UTF16 Surrogate codepoints

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

    Its path does not end in /.

    Its path is not .

    Its path does not contain '..'.

    The path contains no UTF16 Surrogate codepoints

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

    Its path does not contain '..'.

    The path contains no UTF16 Surrogate codepoints

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

    Orphan instances

    Validity (Path Abs File) Source # 
    Instance details

    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 '..'.
    • The path contains no UTF16 Surrogate codepoints
    • Parsing the path and rendering it again results in the same path.
    Instance details

    Validity (Path Rel File) Source # 
    Instance details

    Validity (Path Rel Dir) Source # 
    Instance details