The system-posix-redirect package

[ Tags: bsd3, library, system ] [ Propose Tags ]

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


Versions 1.0,, 1.1,
Dependencies base (==4.*), bytestring (>=0.9), unix (>=2.4.0) [details]
License BSD3
Copyright (c) 2010 Galois Inc, 2013 Liyang HU
Author Galois Inc., Liyang HU
Category System
Source repo head: git clone
Uploaded Thu Nov 14 00:36:05 UTC 2013 by LiyangHu
Distributions LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 1965 total (38 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees