define(`COMMON_DEPS', `base
                     , HTTP
                     , MissingH
                     , aeson
                     , attoparsec
                     , bytestring
                     , either
                     , hslogger
                     , mtl
                     , network
                     , old-time
                     , optparse-applicative
                     , process
                     , scotty
                     , split
                     , system-fileio
                     , system-filepath
                     , template-haskell
                     , temporary
                     , text
                     , unix
                     , vector')dnl
name:                gratte-papier
version:             0.2.0.0
synopsis:            Command-line tool to facilitate document archive via OCR.
license:             MIT
license-file:        LICENSE
author:              Thomas Franquelin
build-type:          Simple
cabal-version:       >=1.10

executable gratte-papier
  ghc-options:       -Wall
  main-is:           Main.hs
  hs-source-dirs:    src
  build-depends:     COMMON_DEPS

executable gratte-server
  ghc-options:       -Wall
  main-is:           Server.hs
  hs-source-dirs:    src
  build-depends:     COMMON_DEPS

test-suite integration
  type:              exitcode-stdio-1.0
  main-is:           Suite.hs
  hs-source-dirs:    tests/integration
                     , src
                     , tests/

  build-depends:     COMMON_DEPS
                   , hspec

define(`COMMON_DEPS', `base
                     , HTTP
                     , MissingH
                     , aeson
                     , attoparsec
                     , bytestring
                     , either
                     , hslogger
                     , mtl
                     , network
                     , old-time
                     , optparse-applicative ==0.9.1.1
                     , process
                     , scotty
                     , split
                     , system-fileio
                     , system-filepath
                     , template-haskell
                     , temporary
                     , text
                     , unix
                     , vector')dnl
name:                gratte-papier
version:             0.2.0.0
synopsis:            Command-line tool to facilitate document archive via OCR.
license:             MIT
license-file:        LICENSE
author:              Thomas Franquelin
build-type:          Simple
cabal-version:       >=1.10

executable gratte-papier
  ghc-options:       -Wall
  main-is:           Main.hs
  hs-source-dirs:    src
  build-depends:     COMMON_DEPS

executable gratte-server
  ghc-options:       -Wall
  main-is:           Server.hs
  hs-source-dirs:    src
  build-depends:     COMMON_DEPS

test-suite integration
  type:              exitcode-stdio-1.0
  main-is:           Suite.hs
  hs-source-dirs:    tests/integration
                     , src
                     , tests/

  build-depends:     COMMON_DEPS
                   , hspec

Put upper bound on optparse-applicative
Put upper bound on optparse-applicative
