Idris2Doc : IO.Async.File

IO.Async.File

(source)

Reexports

importpublic System.Posix.File
importpublic IO.Async.Posix

Definitions

dataRawMode : Type
  Opaque flag indicating that stdin has been set to
raw input mode.

Totality: total
Visibility: export
Constructor: 
RM : RawMode

Hint: 
ELift1Worldf=>ResourcefRawMode
toErrno : FileError->Errno
  Converts a `System.File.Error.FileError` to a POSIX error code

Totality: total
Visibility: export
fileIO : HasErrnoes=>IO (EitherFileErrora) ->Asynceesa
  Wraps an `IO` action from `System.File` in base by converting
file errors to POSIX error codes.

Totality: total
Visibility: export
rawMode : HasErrnoes=>AsynceesRawMode
  Enables raw (unbuffered) input mode for stdin.

To make sure this is properly reset when the application ends,
wrap this in a call to `use` or `use1`:

```idris
use1 rawMode $ \_ => your_code
```

Totality: total
Visibility: export
withFile : HasErrnoes=>String->Flags->Mode-> (Fd->Asynceesa) ->Asynceesa
Totality: total
Visibility: export
readFile : HasErrnoes=> (0r : Type) ->FromBufr=>String->Bits32->Asynceesr
  Reads up to the given number of bytes from a file.

Totality: total
Visibility: export
writeFile : HasErrnoes=>ToBufr=>String->r->Asyncees ()
  Writes a value to an existing file.

Totality: total
Visibility: export
createFile : HasErrnoes=>ToBufr=>String->Mode->r->Asyncees ()
  Writes a value to a file, creating it, if it does not yet exist.

Totality: total
Visibility: export
appendFile : HasErrnoes=>ToBufr=>String->Mode->r->Asyncees ()
  Appends a value to a file.

The file is created if it does not yet exist.

Totality: total
Visibility: export