packages feed

http-client-streams-0.3.1.0: http-client-streams.cabal

name:                http-client-streams
version:             0.3.1.0
synopsis:            http-client for io-streams supporting openssl
license:             BSD3
license-file:        LICENSE
author:              David Johnson
maintainer:          djohnson.m@gmail.com
copyright:           David Johnson (c) 2014
category:            Web, IO-Streams
build-type:          Simple
cabal-version:       >=1.10
description:
  .
  Thin io-streams wrapper for http-client w/ openssl support.
  To use the tls package (instead of openssl) compile with the TLS flag
  .
  @ cabal configure -ftls @
  .
  

Flag tls
  Description: Enable usage of the Native Haskell TLS implementation as opposed to OpenSSL
  Default: False

library
  exposed-modules:     System.IO.Streams.HTTP
  hs-source-dirs:      src
  build-depends:       base                >= 4.7  && < 4.9
                     , bytestring          >= 0.10 && < 0.11
                     , http-client         >= 0.4  && < 0.5
                     , io-streams          >= 1.2  && < 1.3
                     , mtl                 >= 2.2  && < 2.3
                     , transformers        >= 0.4  && < 0.5
  if flag(tls)
   cpp-options:   -DFLAG
   build-depends: http-client-tls >= 0.2 && < 0.3
  else
   build-depends: http-client-openssl >= 0.2  && < 0.3
                , HsOpenSSL           >= 0.11 && < 0.12
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/dmjio/http-client-streams.git