name:                DAV
version:             1.3
synopsis:            RFC 4918 WebDAV support
description:
   This is a library for the Web Distributed Authoring and Versioning
   (WebDAV) extensions to HTTP.  At present it supports a very small
   subset of client functionality.
   .
   In addition, there is an executable, hdav, which can be used for
   command-line operation.

homepage:            http://floss.scru.org/hDAV
bug-reports:         mailto:clint@debian.org
license:             GPL-3
license-file:        LICENSE
author:              Clint Adams
maintainer:          clint@debian.org
copyright:           Copyright (C) 2012-2016  Clint Adams
category:            Web
build-type:          Simple
cabal-version:       >=1.8
extra-source-files:  AUTHORS

flag network-uri
  description: Get Network.URI from the network-uri package
  default: True

flag mtl-compat
  description: Get Control.Monad.Except from the mtl-compat package
  default: False

library
  exposed-modules:  Network.Protocol.HTTP.DAV
  other-modules:    Network.Protocol.HTTP.DAV.TH
  ghc-options:       -Wall
  build-depends:       base >= 4.5                 && < 5
                     , bytestring
                     , case-insensitive >= 0.4
                     , containers
                     , data-default
                     , exceptions >= 0.7
                     , http-client >= 0.4
                     , http-client-tls >= 0.2
                     , http-types >= 0.7
                     , lens >= 3.0
                     , transformers >= 0.3
                     , transformers-base
                     , transformers-compat >= 0.3
                     , utf8-string
                     , xml-conduit >= 1.0
                     , xml-hamlet >= 0.4           && < 0.5
  if flag(mtl-compat)
    build-depends: mtl >= 2.1 && < 2.2.1, mtl-compat
  else
    build-depends: mtl >= 2.2.1

executable hdav
  main-is:           hdav.hs
  ghc-options:       -Wall
  build-depends:       base >= 4.5                 && < 5
                     , bytestring
                     , bytestring
                     , case-insensitive >= 0.4
                     , containers
                     , data-default
                     , exceptions >= 0.7
                     , haskeline
                     , http-client >= 0.4
                     , http-client-tls >= 0.2
                     , http-types >= 0.7
                     , lens >= 3.0
                     , optparse-applicative >= 0.10.0
                     , transformers >= 0.3
                     , transformers-base
                     , transformers-compat >= 0.3
                     , utf8-string
                     , xml-conduit >= 1.0
                     , xml-hamlet >= 0.4           && < 0.5
  if flag(mtl-compat)
    build-depends: mtl >= 2.1 && < 2.2.1, mtl-compat
  else
    build-depends: mtl >= 2.2.1
  if flag(network-uri)
    build-depends: network-uri >= 2.6, network >= 2.6
  else
    build-depends: network >= 2.3 && <2.6

source-repository head
  type:     git
  location: git://anonscm.debian.org/users/clint/DAV.git
  branch:   master

source-repository this
  type:     git
  location: git://anonscm.debian.org/users/clint/DAV.git
  tag:      DAV/1.3
