cabal-version:      2.0
name:               lens-process
version:            0.4.0.0
synopsis:           Optics for system processes
description:
  'lens-process' is a set of multi-purpose optics and convenience
  combinators for working with the `process` library, including
  a more well-typed api for the parts that can be typed.

homepage:           https://github.com/emilypi/lens-process
bug-reports:        https://github.com/emilypi/lens-process/issues
license:            BSD3
license-file:       LICENSE
author:             Emily Pillmore
maintainer:         Emily Pillmore <emilypi@cohomolo.gy>
copyright:          (c) 2019-2021 Emily Pillmore
category:           System
build-type:         Simple
extra-source-files:
  CHANGELOG.md
  README.md

tested-with:
  GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.3

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

library
  exposed-modules:
    System.Process.Lens
    System.Process.Lens.CmdSpec
    System.Process.Lens.CreateProcess
    System.Process.Lens.Optics
    System.Process.Lens.ProcessHandler
    System.Process.Lens.StdStream

  other-extensions:
    MultiParamTypeClasses
    RankNTypes

  build-depends:
      base      >=4.10 && <5
    , filepath  >=1.0  && <1.5
    , lens      >=4.0  && <5
    , process   >=1.3  && <1.7

  hs-source-dirs:   src
  ghc-options:      -Wall
  default-language: Haskell2010

test-suite tasty
  main-is:          ProcessTests.hs
  type:             exitcode-stdio-1.0
  build-depends:
      base          >=4.10 && <5
    , filepath      >=1.2  && <1.5
    , lens          >=4    && <5
    , lens-process
    , process       >=1.3  && <1.7
    , tasty
    , tasty-hunit

  hs-source-dirs:   test
  default-language: Haskell2010
  ghc-options:      -Wall -threaded -rtsopts -with-rtsopts=-N