name:          process
version:       1.2.3.0
-- NOTE: Don't forget to update ./changelog.md
license:       BSD3
license-file:  LICENSE
maintainer:    libraries@haskell.org
bug-reports:   https://github.com/haskell/process/issues
synopsis:      Process libraries
category:      System
build-type:    Configure
cabal-version: >=1.10
description:
    This package contains libraries for dealing with system processes.

extra-source-files:
    aclocal.m4
    changelog.md
    configure
    configure.ac
    include/HsProcessConfig.h.in
    process.buildinfo

extra-tmp-files:
    autom4te.cache
    config.log
    config.status
    include/HsProcessConfig.h

source-repository head
    type:     git
    location: https://github.com/haskell/process.git

library
    default-language: Haskell2010
    other-extensions:
        BangPatterns
        CPP
        InterruptibleFFI
        RecordWildCards
        Trustworthy
    if impl(ghc>=7.9)
        other-extensions: Safe

    exposed-modules:
        System.Cmd
        System.Process
    if impl(ghc)
        exposed-modules:
            System.Process.Internals

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

    ghc-options: -Wall

    build-depends: base      >= 4.4 && < 4.9,
                   directory >= 1.1 && < 1.3,
                   filepath  >= 1.2 && < 1.5,
                   deepseq   >= 1.1 && < 1.5
    if os(windows)
        build-depends: Win32 >=2.2 && < 2.4
        extra-libraries: kernel32
    else
        build-depends: unix >= 2.5 && < 2.8

test-suite test
  default-language: Haskell2010
  hs-source-dirs: test
  main-is: main.hs
  type: exitcode-stdio-1.0
  build-depends: base
               , process