packages feed

hailgun-0.4.1.2: hailgun.cabal

-- Initial hailgun.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

-- The name of the package.
name:                hailgun

-- The package version.  See the Haskell package versioning policy (PVP) 
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary:      +-+------- breaking API changes
--                   | | +----- non-breaking API additions
--                   | | | +--- code changes with no API change
version:             0.4.1.2

-- A short (one-line) description of the package.
synopsis:            Mailgun REST api interface for Haskell.

-- A longer description of the package.
description:         Mailgun is an online service that sends emails. It is a great point of
                     integration for many SaaS services and this Haskell library cleanly interfaces
                     with Mailgun so that you can send emails from your Haskell applications.

-- The license under which the package is released.
license:             MIT

-- The file containing the license text.
license-file:        LICENSE

-- The package author(s).
author:              Robert Massaioli

-- An email address to which users can send suggestions, bug reports, and 
-- patches.
maintainer:          robertmassaioli@gmail.com

-- A copyright notice.
copyright:           (c) 2014 Robert Massaioli

category:            Network

build-type:          Simple

-- Extra files to be distributed with the package, such as examples or a 
-- README.
extra-source-files:  README.markdown

-- Constraint on the version of Cabal needed to build this package.
cabal-version:       >=1.10

Flag NewTime
   Description: Use version 1.5 of the time library or newer.
   Default:     True



library
   exposed-modules:     Mail.Hailgun
                        , Mail.Hailgun.Attachment

   other-modules:       Mail.Hailgun.Internal.Data
                        , Mail.Hailgun.Attachment.Internal
                        , Mail.Hailgun.AttachmentsSearch
                        , Mail.Hailgun.Communication
                        , Mail.Hailgun.Domains
                        , Mail.Hailgun.Errors
                        , Mail.Hailgun.MailgunApi
                        , Mail.Hailgun.Message
                        , Mail.Hailgun.Pagination
                        , Mail.Hailgun.PartUtil
                        , Mail.Hailgun.SendEmail

   build-depends:         base               >= 4.6 && < 5
                        , bytestring         >= 0.10.4 && <= 0.11
                        , aeson              >= 0.8 && < 1.2
                        , text               == 1.2.*
                        , transformers       >= 0.3 && < 0.6
                        , http-client        >= 0.4 && < 0.6
                        , http-client-tls    >= 0.2 && < 0.4
                        , email-validate     >= 2.0 && <2.3
                        , http-types         >= 0.8 && < 0.10
                        , exceptions         == 0.8.*
                        , tagsoup            >= 0.13 && < 0.15
                        , filepath           >= 1 && < 2

   if flag(newtime)
      Build-Depends:    time >= 1.5 && < 1.7
   else
      Build-Depends:    time >= 1.2 && < 1.5, old-locale == 1.*

   ghc-options:         -W
   default-language:    Haskell2010