Package Info

ghc-system-posix-redirect


A toy module to temporarily redirect a program's stdout


Development/Libraries/Haskell

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...


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/system-posix-redirect

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.1.0.1-bp150.2.4 info GA Release 2018-08-01 15
  • AArch64
  • ghc-system-posix-redirect
  • ghc-system-posix-redirect-devel
1.1.0.1-bp150.2.6 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-system-posix-redirect
  • ghc-system-posix-redirect-devel