process.cabal 2.41 KB
Newer Older
1
name:          process
Ben Gamari's avatar
Ben Gamari committed
2
version:       1.6.8.2
3
-- NOTE: Don't forget to update ./changelog.md
4 5 6
license:       BSD3
license-file:  LICENSE
maintainer:    libraries@haskell.org
7
bug-reports:   https://github.com/haskell/process/issues
8 9 10 11
synopsis:      Process libraries
category:      System
build-type:    Configure
cabal-version: >=1.10
12
description:
13
    This package contains libraries for dealing with system processes.
14 15 16 17 18
    .
    The typed-process package is a more recent take on a process API,
    which uses this package internally. It features better binary
    support, easier concurrency, and a more composable API. You can
    read more about it at
Michael Snoyman's avatar
Michael Snoyman committed
19
    <https://github.com/fpco/typed-process/#readme>.
20

Ross Paterson's avatar
Ross Paterson committed
21
extra-source-files:
22
    aclocal.m4
23
    changelog.md
24 25
    configure
    configure.ac
Ross Paterson's avatar
Ross Paterson committed
26
    include/HsProcessConfig.h.in
27
    process.buildinfo
28 29
    exes/echo.bat
    exes/subdir/echo.bat
30

31
extra-tmp-files:
32 33 34
    autom4te.cache
    config.log
    config.status
35
    include/HsProcessConfig.h
Ian Lynagh's avatar
Ian Lynagh committed
36

37
source-repository head
38
    type:     git
39
    location: https://github.com/haskell/process.git
40

41 42
library
    default-language: Haskell2010
43
    other-extensions:
44
        BangPatterns
45 46 47 48
        CPP
        InterruptibleFFI
        RecordWildCards
        Trustworthy
Michael Snoyman's avatar
Michael Snoyman committed
49
        Safe
50

51 52 53
    exposed-modules:
        System.Cmd
        System.Process
54 55 56 57
        System.Process.Internals
    other-modules: System.Process.Common
    if os(windows)
        other-modules: System.Process.Windows
58
        build-depends: Win32 >=2.2 && < 2.9
59 60 61 62
        extra-libraries: kernel32
        cpp-options: -DWINDOWS
    else
        other-modules: System.Process.Posix
63
        build-depends: unix >= 2.5 && < 2.8
64 65 66 67 68 69 70 71 72

    c-sources:
        cbits/runProcess.c
    include-dirs: include
    includes:
        runProcess.h
    install-includes:
        runProcess.h
        processFlags.h
73

74
    ghc-options: -Wall
75

Ben Gamari's avatar
Ben Gamari committed
76
    build-depends: base      >= 4.8.2 && < 4.15,
77
                   directory >= 1.1 && < 1.4,
Herbert Valerio Riedel's avatar
Herbert Valerio Riedel committed
78
                   filepath  >= 1.2 && < 1.5,
79
                   deepseq   >= 1.1 && < 1.5
80 81 82 83 84 85

test-suite test
  default-language: Haskell2010
  hs-source-dirs: test
  main-is: main.hs
  type: exitcode-stdio-1.0
86 87 88
  -- Add otherwise redundant bounds on base since GHC's build system runs
  -- `cabal check`, which mandates bounds on base.
  build-depends: base >= 4 && < 5
Michael Snoyman's avatar
Michael Snoyman committed
89
               , bytestring
90
               , directory
91
               , process
coopercm's avatar
coopercm committed
92 93
  ghc-options: -threaded
               -with-rtsopts "-N"