cabal-version:       >= 1.10
name:                http-streams
version:             0.6.1.1
x-revision: 1
synopsis:            An HTTP client using io-streams
description:
 /Overview/
 .
 An HTTP client, using the Snap Framework's 'io-streams' library to
 hande the streaming IO. The API is optimized for ease of use for the
 rather common case of code needing to query web services and deal with
 the result.
 .
 The library is exported in a single module; see "Network.Http.Client"
 for full documentation.

license:             BSD3
license-file:        LICENCE
author:              Andrew Cowie <andrew@operationaldynamics.com>
maintainer:          Andrew Cowie <andrew@operationaldynamics.com>
copyright:           © 2012-2013 Operational Dynamics Consulting, Pty Ltd and Others
category:            Web
tested-with:         GHC == 7.6
stability:           experimental
homepage:            http://research.operationaldynamics.com/projects/http-streams/
bug-reports:         https://github.com/afcowie/http-streams/issues

build-type:          Custom

library
  default-language:  Haskell2010

  build-depends:     attoparsec,
                     base >= 4 && <4.8,
                     base64-bytestring,
                     blaze-builder,
                     bytestring,
                     case-insensitive,
                     io-streams >= 1.1 && <1.2,
                     HsOpenSSL,
                     openssl-streams >= 1.1 && <1.2,
                     mtl,
                     transformers,
                     network,
                     text,
                     unordered-containers,
                     aeson

  hs-source-dirs:    src
  exposed-modules:   Network.Http.Client
  other-modules:     Network.Http.Types,
                     Network.Http.Connection,
                     Network.Http.RequestBuilder,
                     Network.Http.ResponseParser,
                     Network.Http.Utilities,
                     Network.Http.Inconvenience

  ghc-options:       -O2
                     -Wall
                     -Wwarn
                     -fwarn-tabs
                     -funbox-strict-fields
                     -fno-warn-missing-signatures
                     -fno-warn-unused-binds
                     -fno-warn-unused-do-bind

  include-dirs:      .

  ghc-prof-options:  -prof -fprof-auto-top


test-suite           check
  type:              exitcode-stdio-1.0

  default-language:  Haskell2010

  build-depends:
                     HUnit,
                     HsOpenSSL,
                     MonadCatchIO-transformers,
                     aeson-pretty,
                     attoparsec,
                     base,
                     blaze-builder,
                     base64-bytestring,
                     bytestring,
                     case-insensitive,
                     ghc-prim,
                     hspec,
                     hspec-expectations,
                     io-streams,
                     mtl,
                     transformers,
                     network,
                     openssl-streams,
                     snap-core       >= 0.9    && < 1.0,
                     snap-server     >= 0.9    && < 1.0,
                     system-fileio   >= 0.3.10 && < 0.4,
                     system-filepath >= 0.4.1  && < 0.5,
                     text,
                     unordered-containers,
                     aeson

  hs-source-dirs:    src,tests
  main-is:           Check.hs

  ghc-options:       -O2
                     -threaded
                     -Wall
                     -Wwarn
                     -fwarn-tabs
                     -funbox-strict-fields
                     -fno-warn-missing-signatures
                     -fno-warn-unused-binds
                     -fno-warn-unused-do-bind

  include-dirs:      .


source-repository    head
  type:              git
  location:          git://github.com/afcowie/http-streams.git


-- vim: set tabstop=21 expandtab: