Idris2Doc : Data.FilePath.Body

Data.FilePath.Body

(source)
This provides a more or less reasonable representation for
bodies in a file path.

Definitions

check : (b : Bool) ->Maybe (b=True)
Totality: total
Visibility: public export
Sep : Char
  The platform dependent path separator

Totality: total
Visibility: public export
isBodyChar : Char->Bool
  A character acceptable in the middle of a path body.
We don't allow path separators and control characters in path bodies.

Totality: total
Visibility: public export
0BodyChar : Char->Type
Totality: total
Visibility: public export
0notBodyCharTab : BodyChar'\t'->Void
Totality: total
Visibility: export
0notBodyCharRet : BodyChar'\r'->Void
Totality: total
Visibility: export
0notBodyCharNL : BodyChar'\n'->Void
Totality: total
Visibility: export
0notBodyCharB : BodyChar'\b'->Void
Totality: total
Visibility: export
0notBodyChar0 : BodyChar'\NUL'->Void
Totality: total
Visibility: export
isEndChar : Char->Bool
  We don't accept spaces at the end of path bodies.

Totality: total
Visibility: public export
0EndChar : Char->Type
Totality: total
Visibility: public export
0notEndCharSpace : EndChar' '->Void
Totality: total
Visibility: export
isSingleChar : Char->Bool
  We don't accept path bodies consisting of a single dot.

Totality: total
Visibility: public export
0SingleChar : Char->Type
Totality: total
Visibility: public export
0notSingleCharDot : SingleChar'.'->Void
Totality: total
Visibility: export
isBodyInner : ListChar->Bool
  True if the given list of characters can appear after the initial
character of a path body.

Totality: total
Visibility: public export
0BodyInner : ListChar->Type
Totality: total
Visibility: public export
isBodyChars : ListChar->Bool
  True if the given list of characters represent a valid path body.

Totality: total
Visibility: public export
0BodyChars : ListChar->Type
Totality: total
Visibility: public export
0toInner : (xs : ListChar) ->BodyCharsxs->BodyInnerxs
Totality: total
Visibility: export
0appendInnerChars : (xs : ListChar) -> (ys : ListChar) ->BodyInnerxs->BodyInnerys->BodyInner (xs++ys)
Totality: total
Visibility: export
0appendBodyChars : (xs : ListChar) -> (ys : ListChar) ->BodyCharsxs->BodyCharsys->BodyChars (xs++ys)
Totality: total
Visibility: export
0preDotBodyChars : (cs : ListChar) ->BodyCharscs->BodyChars ('.'::cs)
Totality: total
Visibility: export
recordBody : Type
  A single body in a path. This is represented as a list of characters,
since otherwise we'd have to constantly unpack and pack this anyway.

Totality: total
Visibility: public export
Constructor: 
MkBody : (body : ListChar) -> (0_ : BodyCharsbody) ->Body

Projections:
.body : Body->ListChar
0.prf : ({rec:0} : Body) ->BodyChars (body{rec:0})

Hints:
EqBody
InterpolationBody
OrdBody
SemigroupBody
ShowBody
.body : Body->ListChar
Totality: total
Visibility: public export
body : Body->ListChar
Totality: total
Visibility: public export
0.prf : ({rec:0} : Body) ->BodyChars (body{rec:0})
Totality: total
Visibility: public export
0prf : ({rec:0} : Body) ->BodyChars (body{rec:0})
Totality: total
Visibility: public export
fromChars : ListChar->MaybeBody
  Tries to convert a list of character to a body

Totality: total
Visibility: public export
parse : String->MaybeBody
  Tries to convert a string to a body

Totality: total
Visibility: public export
fromString : (s : String) -> {auto0_ : BodyChars (unpacks)} ->Body
Totality: total
Visibility: public export
preDot : Body->Body
Totality: total
Visibility: export
(<.>) : Body->Body->Body
  Append a file ending to a path body.

Totality: total
Visibility: export
Fixity Declaration: infixr operator, level 7
split : Body->Maybe (Body, Body)
  Tries to split a path body into its stem an extension.

Totality: total
Visibility: export
fileStem : Body->MaybeBody
  Tries to extract a stem from a file name.

Totality: total
Visibility: export
isHidden : Body->Bool
  True if the file body starts with a dot.

Totality: total
Visibility: export
extension : Body->MaybeBody
  Tries to extract an extension from a file name.

Totality: total
Visibility: export