Expand description
Files, directories and the environment of the process: IO.FS, IO.getEnv, IO.appPath,
the current directory, process and thread ids, random bytes and timeit.
Functions§
- lean_
chmod ⚠ IO.setAccessRightsthroughchmod : (@& FilePath) → UInt32 → IO Unit.- lean_
io_ ⚠allocprof allocprof : (@& String) → IO α → IO α: runs the action (this runtime keeps no allocation profile, so it prints an empty line).- lean_
io_ ⚠app_ path IO.appPath : IO FilePath: the executable, with symbolic links resolved.- lean_
io_ ⚠create_ dir IO.FS.createDir : @& FilePath → IO Unit.- lean_
io_ ⚠create_ tempdir IO.FS.createTempDir : IO FilePath.- lean_
io_ ⚠create_ tempfile IO.FS.createTempFile : IO (Handle × FilePath).- lean_
io_ ⚠current_ dir IO.currentDir : IO FilePath.- lean_
io_ ⚠force_ exit IO.Process.forceExit : UInt8 → IO α: exits without flushing the standard streams.- lean_
io_ ⚠get_ num_ heartbeats IO.getNumHeartbeats : BaseIO Nat: the value last set bysetNumHeartbeats(this runtime counts no heartbeats).- lean_
io_ ⚠get_ random_ bytes IO.getRandomBytes : USize → IO ByteArray, from/dev/urandom.- lean_
io_ ⚠get_ tid IO.getTID : BaseIO UInt64: the id of the OS thread.- lean_
io_ ⚠getenv IO.getEnv : @& String → BaseIO (Option String).- lean_
io_ ⚠hard_ link IO.FS.hardLink : (orig link : @& FilePath) → IO Unit.- lean_
io_ ⚠metadata System.FilePath.metadata : @& FilePath → IO Metadata.- lean_
io_ ⚠process_ get_ current_ dir IO.Process.getCurrentDir : IO FilePath.- lean_
io_ ⚠process_ get_ pid IO.Process.getPID : BaseIO UInt32.- lean_
io_ ⚠process_ set_ current_ dir IO.Process.setCurrentDir : @& FilePath → IO Unit.- lean_
io_ ⚠read_ dir IO.FS.readDir : @& FilePath → IO (Array DirEntry):DirEntryis⟨root, fileName⟩.- lean_
io_ ⚠realpath IO.FS.realPath : FilePath → IO FilePath(consumesfname).- lean_
io_ ⚠remove_ dir IO.FS.removeDir : @& FilePath → IO Unit.- lean_
io_ ⚠remove_ file IO.FS.removeFile : @& FilePath → IO Unit.- lean_
io_ ⚠rename IO.FS.rename : (old new : @& FilePath) → IO Unit; the file name of an error is"<old> and/or <new>".- lean_
io_ ⚠set_ heartbeats IO.setNumHeartbeats : Nat → BaseIO Unit(consumescount).- lean_
io_ ⚠symlink_ metadata System.FilePath.symlinkMetadata : @& FilePath → IO Metadata.- lean_
io_ ⚠timeit timeit : (@& String) → IO α → IO α: runs the action and prints<msg> <time>on the standard error stream.