packages feed

servant-multipart-client-0.13.0: servant-multipart-client.cabal

name:               servant-multipart-client
version:            0.13.0
synopsis:           multipart/form-data (e.g file upload) support for servant
description:
  This package adds client-side support for file upload to the servant ecosystem.

homepage:           https://github.com/haskell-servant/servant-multipart#readme
license:            BSD3
license-file:       LICENSE
author:             Alp Mestanogullari
maintainer:         alpmestan@gmail.com
copyright:          2016-2017 Alp Mestanogullari, 2018-2019 Servant Contributors
category:           Web, Servant
build-type:         Simple
cabal-version:      >=1.10
extra-source-files: CHANGELOG.md
tested-with:
  GHC ==9.4.8
   || ==9.6.3
   || ==9.8.4
   || ==9.10.3
   || ==9.12.4

library
  default-language: Haskell2010
  hs-source-dirs:   src
  exposed-modules:  Servant.Multipart.Client

  -- ghc boot libs
  build-depends:
      array         >=0.5.4.0  && <0.6
    , base          >=4.17     && <5
    , bytestring    >=0.11     && <0.13
    , text          >=2.0      && <2.2
    , random        >=1.2      && <1.4

  -- other dependencies
  build-depends:
      servant-multipart-api == 0.13.*
    , http-media          >=0.8      && <0.9
    , servant             >=0.20.3   && <0.21
    , servant-client-core >=0.20.3   && <0.21

test-suite servant-multipart-client-test
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Test.hs
  default-language: Haskell2010
  build-depends:
      base
    , bytestring
    , http-types
    , servant
    , servant-client-core
    , servant-multipart
    , servant-multipart-client
    , servant-server
    , tasty
    , tasty-wai
    , text
    , transformers

executable upload
  hs-source-dirs:   exe
  main-is:          Upload.hs
  default-language: Haskell2010
  build-depends:
      base
    , http-client                 <0.8
    , network            >=3.2 && <3.3
    , servant
    , servant-multipart-api       == 0.13.*
    , servant-multipart-client
    , servant-client              <0.21
    , servant-client-core

executable server
  hs-source-dirs:   exe
  main-is:          Server.hs
  default-language: Haskell2010
  build-depends:
      base                        <5
    , bytestring                  <0.13
    , network            >=3.2 && <3.3
    , servant-multipart           == 0.13.*
    , servant-server              <0.21
    , warp                        <3.5