The "system" module.
Modulehslua-module-system-1.3.0Haskell2010
HsLua.Module.System
Provide a Lua module containing a selection of functions.System
- 27 values
- Packagehslua-module-system-1.3.0
- Exports27
- 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
Run a system command
Copy a file
Access the CPU time, e.g. for benchmarking.
Retrieve the entire environment
Check the existence of a file path.
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.
Returns the contents of a file.
Rename a file path.
Remove a file.
Remove an existing directory.
Set the specified environment variable to a new value.
Change current working directory.
Get the modification time and access time of a file.
Get the current directory for temporary files.
Run an action, then restore the old environment variable values.
Provides a temporary directory for the given action.
Run an action in a different directory, then restore the old working directory.
Write a string to a file.
Obtain the paths to special directories.