cabal-version:       2.2

name:                mailgun
version:             0.2
synopsis:            API binding for Mailgun
description:
  API binding for mailgun in Haskell. Primarily the v3 API.
  .
  As of version 0.2, this package was entirely rewriten. Previous versions were developed by Andrew Rademacher.
homepage:            https://oss.xkcd.com/
license:             BSD-3-Clause
license-file:        LICENSE
author:              davean
maintainer:          oss@xkcd.com
copyright:           Copyright (C) 2019 davean
category:            Web, Email
extra-source-files:  CHANGELOG.md

source-repository head
  type: git
  location: https://code.xkrd.net/haskell/mailgun.git

common deps
  build-depends:
      aeson                ^>= 1.4
    , aeson-filthy         ^>= 0.1.3
    , ascii                ^>= 0.0
    , base                 ^>= 4.12.0.0
    , bytestring           ^>= 0.10
    , containers           ^>= 0.6
    , exceptions           ^>= 0.10
    , filepath             ^>= 1.4
    , ini                  ^>= 0.4
    , lens                 ^>= 4.17
    , lens-aeson           ^>= 1.0
    , machines             ^>= 0.6
    , mime-mail            ^>= 0.5
    , mime-types           ^>= 0.1
    , mtl                  ^>= 2.2
    , text                 ^>= 1.2
    , these                ^>= 0.8
    , time                 ^>= 1.8
    , transformers         ^>= 0.5
    , unordered-containers ^>= 0.2
    , wreq                 ^>= 0.5

library
  import: deps
  hs-source-dirs:      src
  default-language:    Haskell2010
  exposed-modules:
    Network.Mail.Mailgun
    Network.Mail.Mailgun.API
    Network.Mail.Mailgun.Config
    Network.Mail.Mailgun.Domains
    Network.Mail.Mailgun.List
    Network.Mail.Mailgun.Send