File: system-posix-redirect.cabal

package info (click to toggle)
haskell-system-posix-redirect 1.1.0.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 72 kB
  • sloc: haskell: 61; ansic: 10; makefile: 5
file content (39 lines) | stat: -rw-r--r-- 1,354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: system-posix-redirect
version: 1.1.0.1
synopsis: A toy module to temporarily redirect a program's stdout.
description:
    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: BSD3
license-file: LICENSE
author: Galois Inc., Liyang HU
maintainer: system-posix-redirect@liyang.hu
copyright: (c) 2010 Galois Inc, 2013 Liyang HU
category: System
build-type: Simple
extra-source-files:
    include/hsredirect.h
    cbits/hsredirect.c
cabal-version: >= 1.6

source-repository head
    type: git
    location: https://github.com/liyang/system-posix-redirect

library
    exposed-modules:
        System.Posix.Redirect
    build-depends:
        base >= 4 && < 5,
        bytestring >= 0.9,
        unix >= 2.4.0
    ghc-options: -Wall
    c-sources: cbits/hsredirect.c
    include-dirs: include
    install-includes: include/hsredirect.h