Idris2Doc : Control.RIO.File

Control.RIO.File

(source)

Reexports

importpublic Control.RIO.App
importpublic Data.FilePath.File
importpublic Data.DPair
importpublic Data.List

Definitions

dataFileErr : Type
Totality: total
Visibility: public export
Constructors:
ReadErr : Filet->FileError->FileErr
WriteErr : Filet->FileError->FileErr
DeleteErr : Patht->FileError->FileErr
LimitExceeded : Filet->Bits32->FileErr
CurDir : FileErr
ChangeDir : Patht->FileErr
ListDir : Patht->FileError->FileErr
MkDir : Patht->FileError->FileErr
printErr : FileErr->String
Totality: total
Visibility: export
recordFS : Type
  Record representing a simple file system, where we can
read from and write to files.

Totality: total
Visibility: public export
Constructor: 
MkFS : ((0t : PathType) ->Filet->String->IO (EitherFileErr ())) -> ((0t : PathType) ->Filet->String->IO (EitherFileErr ())) -> ((0t : PathType) ->Filet->IO (EitherFileErr ())) -> ((0t : PathType) ->Patht->IO (EitherFileErr ())) -> ((0t : PathType) ->Patht->IOBool) -> ((0t : PathType) ->Filet->Bits32->IO (EitherFileErrString)) ->IO (EitherFileErr (PathAbs)) -> ((0t : PathType) ->Patht->IO (EitherFileErr ())) -> ((0t : PathType) ->Patht->IO (EitherFileErr (ListBody))) -> ((0t : PathType) ->Patht->IO (EitherFileErr ())) ->FS

Projections:
.append_ : FS-> (0t : PathType) ->Filet->String->IO (EitherFileErr ())
  Appends the string to the file in question
.changeDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Change to the given directory
.curDir_ : FS->IO (EitherFileErr (PathAbs))
  Prints the current working directory.
.exists_ : FS-> (0t : PathType) ->Patht->IOBool
  Checks if the given file exists in the file system
.listDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr (ListBody))
  List entries in a directory (without `.` and `..`)
.mkDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Creates the given directory
.read_ : FS-> (0t : PathType) ->Filet->Bits32->IO (EitherFileErrString)
  This tries to read a file in whole, so we have to limit
the acceptable file size, otherwise this might overflow
the computer's memory if presented with an infinite stream
such as `/dev/zero`
.removeDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Deletes the given directory.
.removeFile_ : FS-> (0t : PathType) ->Filet->IO (EitherFileErr ())
  Deletes the given file.
.write_ : FS-> (0t : PathType) ->Filet->String->IO (EitherFileErr ())
  Writes the string to the file in question
.write_ : FS-> (0t : PathType) ->Filet->String->IO (EitherFileErr ())
  Writes the string to the file in question

Totality: total
Visibility: public export
write_ : FS-> (0t : PathType) ->Filet->String->IO (EitherFileErr ())
  Writes the string to the file in question

Totality: total
Visibility: public export
.append_ : FS-> (0t : PathType) ->Filet->String->IO (EitherFileErr ())
  Appends the string to the file in question

Totality: total
Visibility: public export
append_ : FS-> (0t : PathType) ->Filet->String->IO (EitherFileErr ())
  Appends the string to the file in question

Totality: total
Visibility: public export
.removeFile_ : FS-> (0t : PathType) ->Filet->IO (EitherFileErr ())
  Deletes the given file.

Totality: total
Visibility: public export
removeFile_ : FS-> (0t : PathType) ->Filet->IO (EitherFileErr ())
  Deletes the given file.

Totality: total
Visibility: public export
.removeDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Deletes the given directory.

Totality: total
Visibility: public export
removeDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Deletes the given directory.

Totality: total
Visibility: public export
.exists_ : FS-> (0t : PathType) ->Patht->IOBool
  Checks if the given file exists in the file system

Totality: total
Visibility: public export
exists_ : FS-> (0t : PathType) ->Patht->IOBool
  Checks if the given file exists in the file system

Totality: total
Visibility: public export
.read_ : FS-> (0t : PathType) ->Filet->Bits32->IO (EitherFileErrString)
  This tries to read a file in whole, so we have to limit
the acceptable file size, otherwise this might overflow
the computer's memory if presented with an infinite stream
such as `/dev/zero`

Totality: total
Visibility: public export
read_ : FS-> (0t : PathType) ->Filet->Bits32->IO (EitherFileErrString)
  This tries to read a file in whole, so we have to limit
the acceptable file size, otherwise this might overflow
the computer's memory if presented with an infinite stream
such as `/dev/zero`

Totality: total
Visibility: public export
.curDir_ : FS->IO (EitherFileErr (PathAbs))
  Prints the current working directory.

Totality: total
Visibility: public export
curDir_ : FS->IO (EitherFileErr (PathAbs))
  Prints the current working directory.

Totality: total
Visibility: public export
.changeDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Change to the given directory

Totality: total
Visibility: public export
changeDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Change to the given directory

Totality: total
Visibility: public export
.listDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr (ListBody))
  List entries in a directory (without `.` and `..`)

Totality: total
Visibility: public export
listDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr (ListBody))
  List entries in a directory (without `.` and `..`)

Totality: total
Visibility: public export
.mkDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Creates the given directory

Totality: total
Visibility: public export
mkDir_ : FS-> (0t : PathType) ->Patht->IO (EitherFileErr ())
  Creates the given directory

Totality: total
Visibility: public export
exists : FS=>Patht->RIOxBool
  True if the given file or directory exists in the file system

Totality: total
Visibility: export
fileExists : FS=>Filet->RIOxBool
  True if the given file exists in the file system

Totality: total
Visibility: export
missing : FS=>Patht->RIOxBool
  True if the given file or directory does not exist in the file system

Totality: total
Visibility: export
fileMissing : FS=>Filet->RIOxBool
  True if the given file does not exist in the file system

Totality: total
Visibility: export
write : FS=>HasFileErrxs=>Filet->String->Appxs ()
  Writes the given string to a file.

Totality: total
Visibility: export
append : FS=>HasFileErrxs=>Filet->String->Appxs ()
  Writes the given string to a file.

Totality: total
Visibility: export
read : FS=>HasFileErrxs=>Filet->Bits32->AppxsString
  Reads a string from a file, the size of which must not
exceed the given number of bytes.

Totality: total
Visibility: export
removeFile : FS=>HasFileErrxs=>Filet->Appxs ()
  Delete a file from the file system.

Totality: total
Visibility: export
removeDir : FS=>HasFileErrxs=>Patht->Appxs ()
  Delete a file from the file system.

Totality: total
Visibility: export
curDir : FS=>HasFileErrxs=>Appxs (PathAbs)
  Returns the current directory's path.

Totality: total
Visibility: export
chgDir : FS=>HasFileErrxs=>Patht->Appxs ()
  Changes the working directory

Totality: total
Visibility: export
inDir : FS=>HasFileErrxs=>Patht->Appxsa->Appxsa
  Runs an action in the given directory, changing back
to the current directory afterwards.

Totality: total
Visibility: export
listDir : FS=>HasFileErrxs=>Patht->Appxs (ListBody)
  List entries in a directory (without `.` and `..`)

Totality: total
Visibility: export
mkDir : FS=>HasFileErrxs=>Patht->Appxs ()
  Creates the given directory

Totality: total
Visibility: export
mkDirP : FS=>HasFileErrxs=>Patht->Appxs ()
  Creates the given directory (including parent directories)

Totality: total
Visibility: export
mkParentDir : FS=>HasFileErrxs=>Filet->Appxs ()
  Creates the parent directory of the given file

Totality: total
Visibility: export
local : FS
  A computer's local file system

Totality: total
Visibility: export