packages feed

http-directory-0.1.7: http-directory.cabal

cabal-version:       1.18
name:                http-directory
version:             0.1.7
synopsis:            http directory listing library
description:
            Library for listing the files (href's) in an http directory.
            It can also check the size, existence, modtime of files,
            and for url redirects.
homepage:            https://github.com/juhp/http-directory
bug-reports:         https://github.com/juhp/http-directory/issues
license:             MIT
license-file:        LICENSE
author:              Jens Petersen
maintainer:          juhpetersen@gmail.com
copyright:           2019 Jens Petersen
category:            Network
build-type:          Simple
extra-doc-files:     README.md
                   , CHANGELOG.md
                   , example/Makefile
                   , example/latest-ghc.hs
                   , example/list-page.hs
tested-with:         GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3,
                     GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5

source-repository head
  type:                git
  location:            https://github.com/juhp/http-directory.git

library
  hs-source-dirs:      src
  exposed-modules:     Network.HTTP.Directory

  build-depends:       base < 5,
                       bytestring,
                       html-conduit,
                       http-client,
                       http-client-tls,
                       http-date >= 0.0.7,
                       http-types,
                       network-uri,
                       text,
                       time,
                       xml-conduit
  if impl(ghc<8.0)
      build-depends: semigroups,
                     cryptonite < 0.26

  ghc-options:         -fwarn-missing-signatures
                       -Wall

  default-language:    Haskell2010
  default-extensions:  OverloadedStrings

test-suite test
    main-is: Spec.hs
    type: exitcode-stdio-1.0
    hs-source-dirs: test

    default-language: Haskell2010

    ghc-options:   -Wall -threaded -rtsopts -with-rtsopts=-N
    cpp-options:   -DDEBUG
    build-depends: base >= 4 && < 5
                 , hspec >= 1.3
                 , http-directory
                 , text