The "system" module.
Modulehslua-module-system-1.1.1Haskell2010
HsLua.Module.System
Provide a Lua module containing a selection of functions.System
- 18 values
- Packagehslua-module-system-1.1.1
- Exports18
- LanguageHaskell2010
- LicenceMIT
- SourceSystem.hs
Module
1 declarationFields
Module field containing the machine architecture on which the
program is running. Wraps arch
Module field containing the Haskell implementation with which the
host program was compiled. Wraps compilerName.
Module field containing the version of compiler_name with which the host program was compiled.
Field containing the operating system on which the program is running.
Functions
Access the CPU time, e.g. for benchmarking.
Retrieve the entire environment
Returns the value of an environment variable
Return the current working directory as an absolute path.
List the contents of a directory.
Create a new directory which is initially empty, or as near to empty as the operating system allows.
If the optional second parameter is false, then create the new
directory only if it doesn't exist yet. If the parameter is true,
then parent directories are created as necessary.
Remove an existing directory.
Set the specified environment variable to a new value.
Change current working directory.
Get the current directory for temporary files.
Run an action, then restore the old environment variable values.
Run an action in a different directory, then restore the old working directory.