packages feed

minicurl-0: minicurl.cabal

cabal-version:      3.0
name:               minicurl
version:            0
synopsis:           Minimal bindings to libcurl
category:           Network
description:
  Minimal bindings to @libcurl@.
  Allows to download files if you know their size.

author:             Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer:         Oleg Grenrus <oleg.grenrus@iki.fi>
homepage:           https://github.com/phadej/minicurl
bug-reports:        https://github.com/phadej/minicurl/issues
license:            BSD-3-Clause
license-file:       LICENSE
extra-source-files: include/hs_minicurl.h
tested-with:
  GHC ==8.0.2
   || ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.5
   || ==9.4.4

source-repository head
  type:     git
  location: https://github.com/phadej/minicurl.git

library
  default-language:  Haskell2010
  hs-source-dirs:    src
  include-dirs:      include
  ghc-options:       -Wall
  exposed-modules:   MiniCurl
  pkgconfig-depends: libcurl >=7.58.0
  build-depends:
    , base        >=4.9.0.0   && <4.18
    , bytestring  ^>=0.10.8.1 || ^>=0.11.3.1

-- this "test-suite" requires internet connection.
test-suite minicurl-example
  type:             exitcode-stdio-1.0
  default-language: Haskell2010
  hs-source-dirs:   example
  main-is:          minicurl-example.hs
  build-depends:
    , base
    , bytestring
    , minicurl

  -- test dependencies
  build-depends:
    , cryptohash-sha256  ^>=0.11.102.1
    , HUnit              ^>=1.6.2.0