Computation system cmd returns the exit code produced when the operating system runs the shell command cmd.
This computation may fail with
* PermissionDenied: The process has insufficient privileges to perform the operation.
* ResourceExhausted: Insufficient resources are available to perform the operation.
* UnsupportedOperation: The implementation does not support system calls.
On Windows, system passes the command to the Windows command interpreter (CMD.EXE or COMMAND.COM), hence Unixy shell tricks will not work.
Get argv as a FilePath. This is how the program was invoked, and might not correspond to any actual file.
Use this instead of System.Environment.getProgName if you want the full path, and not just the last component.
This is a small wrapper around the "directory", "unix", and "Win32" packages, for use with "system-filepath". It provides a consistent API to the various versions of these packages distributed with different versions of GHC.
In particular, this library supports working with POSIX files that have paths which can't be decoded in the current locale encoding.
Binding to Linux's inotify interface
Due to the design of POSIX, it is possible to temporarily overload the file descriptors corresponding to stdout and stderr to point to an arbitrary pipe. It is, however, tricky to get right. This module gets it right, as far as such a terrible hack can be made right. It can be used to make misbehaving third-party C libraries stop spewing to standard output. Warning: the module author has concluded that due to lack of portability, this module should not be used in any serious sytem. But, for those who like living dangerously...
Simple library for using the system's monotonic clock. This library is geared toward programs that need to run for long periods of time. It does not (necessarily) provide high-resolution timing.
* On Windows, this uses GetTickCount64, but falls back to GetTickCount if it is not available. GetTickCount64 was introduced in Windows Vista and Windows Server 2008. Support for QueryPerformanceCounter is also available, but is not used by default, as it is less accurate in the long run than GetTickCount.
* On Linux, this uses clock_gettime with CLOCK_MONOTONIC.
0.2: Update driver API (SystemClock) to prevent cumulative precision loss. 0.1: Initial release.
Bindings to the native UUID generator for a number of platforms. Please contact the author if your platform is not supported.
FileSystem allows you to create a virtual file system. This package defines:
* A data structure of a file system, with directories and files.
* A monad transformer which adds a file system environment, where you can do standard system operations, like write and read files or create directories.
* An IO interface for create these virtual file systems from existing real directories.
Provides ability to traverse a folder structure efficiently, as well as convenience wrappers for reading from and writing to files.
Show more results