Idris2Doc : Data.FilePath

Data.FilePath

(source)
A small API for working with file and directory
paths, with the ability to distinguish between relative
and absolute paths at the type level.

Reexports

importpublic Data.FilePath.Body
importpublic Data.List1
importpublic Data.Maybe
importpublic Data.String

Definitions

recordDriveLetter : Type
Totality: total
Visibility: public export
Constructor: 
MkDriveLetter : (letter : Char) -> (0_ : isAlphaletter=True) ->DriveLetter

Projections:
.letter : DriveLetter->Char
0.prf : ({rec:0} : DriveLetter) ->isAlpha (letter{rec:0}) =True

Hints:
EqDriveLetter
InterpolationDriveLetter
ShowDriveLetter
.letter : DriveLetter->Char
Totality: total
Visibility: public export
letter : DriveLetter->Char
Totality: total
Visibility: public export
0.prf : ({rec:0} : DriveLetter) ->isAlpha (letter{rec:0}) =True
Totality: total
Visibility: public export
0prf : ({rec:0} : DriveLetter) ->isAlpha (letter{rec:0}) =True
Totality: total
Visibility: public export
fromChar : (c : Char) -> {auto0_ : isAlphac=True} ->DriveLetter
Totality: total
Visibility: export
parse : Char->MaybeDriveLetter
Totality: total
Visibility: public export
dataAbsType : Type
Totality: total
Visibility: public export
Constructors:
Unix : AbsType
Disk : DriveLetter->AbsType
UNC : Body->Body->AbsType

Hints:
EqAbsType
InterpolationAbsType
ShowAbsType
dataPathType : Type
  A path in the file system is either relative
or absolute.

Totality: total
Visibility: public export
Constructors:
Rel : PathType
Abs : PathType

Hints:
Eq (Filet)
Eq (Patht)
Interpolation (Filet)
Interpolation (Patht)
Ord (Filet)
Ord (Patht)
Show (Filet)
Show (Patht)
dataPath : PathType->Type
  A path in the file system.

Right now, only Unix-style paths are supported.

Totality: total
Visibility: public export
Constructors:
PAbs : AbsType->SnocListBody->PathAbs
  An absolute path
PRel : SnocListBody->PathRel
  A relative path

Hints:
Eq (Patht)
Interpolation (Patht)
Monoid (PathRel)
Ord (Patht)
Semigroup (PathRel)
Show (Patht)
(</>) : Patht->PathRel->Patht
  Concatenate two paths, the second of which must be
relative.

Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 5
(/>) : Patht->Body->Patht
  Append a file or directory to a path.

Totality: total
Visibility: export
Fixity Declaration: infixl operator, level 5
split : Patht->Maybe (Patht, Body)
  Try and split a path into parent directory and
file/directory name.

Totality: total
Visibility: public export
(<.>) : Patht->Body->Patht
  Append a file ending to a path. If the path is empty,
this appends a hidden file/directory by prepending the
name with a dot.

Totality: total
Visibility: export
Fixity Declaration: infixr operator, level 7
root : PathAbs
  The root of the file system. (unix)

Totality: total
Visibility: public export
disk : DriveLetter->PathAbs
  The root of the given disk. (windows)

Totality: total
Visibility: public export
network : Body->Body->PathAbs
  The root of the given network share. (windows)

Totality: total
Visibility: public export
isAbsolute : Patht->Bool
  Checks whether an unknown path is absolute or not.

Totality: total
Visibility: export
basename : Patht->MaybeBody
  Tries to extract the basename from a path.

Totality: total
Visibility: export
parentDir : Patht->Maybe (Patht)
  Tries to extract the parent directory from a path.

Totality: total
Visibility: export
parentDirs : Patht->List (Patht)
  Returns a list of parent directories of the given path.

Totality: total
Visibility: export
splitFileName : Patht->Maybe (Patht, Body)
  Try and split a path into base name and file extension.

Totality: total
Visibility: export
stemAndExt : Patht->Maybe (Body, Body)
  Try and split a path into the stem and extension
of the basename.

Totality: total
Visibility: export
fileStem : Patht->MaybeBody
  Try and extract the file stem from a path.

Totality: total
Visibility: export
extension : Patht->MaybeBody
  Try and extract the extension from a file.

Totality: total
Visibility: export
normalize : Patht->Patht
  Remove references to parent directories (`..`)
by removing the according number of parent dirs.

In case of absolute paths, excess `..`s will be
silently dropped.

Totality: total
Visibility: export
isHidden : Pathb->Bool
  True if the path's basename starts with a dot

Totality: total
Visibility: export
heq : Patht1->Patht2->Bool
  Heterogeneous equality for paths

Totality: total
Visibility: export
hcomp : Patht1->Patht2->Ordering
  Heterogeneous comparison of paths

Totality: total
Visibility: export
recordFilePath : Type
  A path (relative or absolute) in a file system.

Totality: total
Visibility: public export
Constructor: 
FP : PathpathType->FilePath

Projections:
.path : ({rec:0} : FilePath) ->Path (pathType{rec:0})
0.pathType : FilePath->PathType

Hints:
EqFilePath
FromStringFilePath
InterpolationFilePath
OrdFilePath
ShowFilePath
0.pathType : FilePath->PathType
Totality: total
Visibility: public export
0pathType : FilePath->PathType
Totality: total
Visibility: public export
.path : ({rec:0} : FilePath) ->Path (pathType{rec:0})
Totality: total
Visibility: public export
path : ({rec:0} : FilePath) ->Path (pathType{rec:0})
Totality: total
Visibility: public export
(/>) : FilePath->Body->FilePath
  Append a file or directory to a path.

Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 5
(</>) : FilePath->PathRel->FilePath
  Append a relative path do a file path.

Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 5
split : FilePath->Maybe (FilePath, Body)
  Try and split a path into parent directory and
file/directory name.

Totality: total
Visibility: public export
(<.>) : FilePath->Body->FilePath
  Append a file ending to a path. If the path is empty,
this appends a hidden file/directory by prepending the
name with a dot.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 7
root : FilePath
  The root of the file system.

Totality: total
Visibility: public export
isAbsolute : FilePath->Bool
  Checks whether an unknown path is absolute or not.

Totality: total
Visibility: export
basename : FilePath->MaybeBody
  Tries to extract the basename from a path.

Totality: total
Visibility: export
parentDir : FilePath->MaybeFilePath
  Tries to extract the parent directory from a path.

Totality: total
Visibility: export
parentDirs : FilePath->ListFilePath
  Returns a list of parent directories of the given path.

Totality: total
Visibility: export
splitFileName : FilePath->Maybe (FilePath, Body)
  Try and split a path into base name and file extension.

Totality: total
Visibility: export
stemAndExt : FilePath->Maybe (Body, Body)
  Try and split a path into the stem and extension
of the basename.

Totality: total
Visibility: export
fileStem : FilePath->MaybeBody
  Try and extract the file stem from a path.

Totality: total
Visibility: export
extension : FilePath->MaybeBody
  Try and extract the extension from a file.

Totality: total
Visibility: export
isHidden : FilePath->Bool
  True if the path's basename starts with a dot

Totality: total
Visibility: export
dataIsAbs : FilePath->Type
  Witness that the given file path is an absolute path

Totality: total
Visibility: public export
Constructor: 
ItIsAbs : IsAbs (FP (PAbsatsx))
toAbs : (fp : FilePath) -> {auto0_ : IsAbsfp} ->PathAbs
Totality: total
Visibility: public export
dataIsRel : FilePath->Type
  Witness that the given file path is an absolute path

Totality: total
Visibility: public export
Constructor: 
ItIsRel : IsRel (FP (PRelsx))
toRel : (fp : FilePath) -> {auto0_ : IsRelfp} ->PathRel
Totality: total
Visibility: public export
parse : String->Maybe (PathAbs)
  A quite strict function for parsing absolute paths.
This only accepts valid file bodies, so no doubling
of path separators or bodies starting with or ending
on whitespace. Sorry.

Totality: total
Visibility: public export
fromString : (s : String) -> {auto0_ : IsJust (parses)} ->PathAbs
Totality: total
Visibility: public export
parse : String->Maybe (PathRel)
  A quite strict function for parsing relative paths.
This only accepts valid file bodies, so no doubling
of path separators or bodies starting with or ending
on whitespace. Sorry.

Totality: total
Visibility: public export
fromString : (s : String) -> {auto0_ : IsJust (parses)} ->PathRel
Totality: total
Visibility: public export
parse : String->MaybeFilePath
  A quite strict function for parsing absolute paths.
This only accepts valid file bodies, so no doubling
of path separators or bodies starting with or ending
on whitespace. Sorry.

Totality: total
Visibility: public export