packages feed

monzo-0.4.0.0: monzo.cabal

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

-- The name of the package.
name:                   monzo

-- 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.0.0

-- A short (one-line) description of the package.
synopsis:               Haskell bindings for the Monzo API

-- A longer description of the package.
description:            Provides Haskell bindings for the Monzo API.

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

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

-- The package author(s).
author:                 Michael B. Gale

-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer:             michael.gale@cl.cam.ac.uk

-- A copyright notice.
-- copyright:

category:               Web

build-type:             Simple

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

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

source-repository head
  type:                 git
  location:             https://github.com/mbg/monzo

library
  -- Modules exported by the library.
  exposed-modules:      Monzo,
                        Monzo.API

  -- Modules included in this library but not exported.
  other-modules:        Monzo.Types

  -- LANGUAGE extensions used by modules in this package.
  -- other-extensions:

  -- Other library packages from which modules are imported.
  build-depends:        base >=4.8 && <4.9,
                        aeson >=0.11,
                        servant >=0.6,
                        servant-client >=0.6,
                        transformers >=0.4,
                        http-client >= 0.4,
                        http-client-tls >= 0.2,
                        authenticate-oauth >=1.5,
                        bytestring >=0.10,
                        mtl,
                        text >= 1.2,
                        containers,
                        time >=1.5,
                        timerep >=2.0,
                        unordered-containers >=0.2

  -- Directories containing source files.
  hs-source-dirs:       src

  -- Base language which the package is written in.
  default-language:     Haskell2010

  default-extensions:   TypeOperators,
                        DataKinds,
                        DeriveGeneric,
                        OverloadedStrings,
                        ScopedTypeVariables,
                        FlexibleInstances,
                        FlexibleContexts,
                        UndecidableInstances,
                        TypeFamilies,
                        RecordWildCards,
                        PolyKinds,
                        GADTs,
                        ImpredicativeTypes

test-suite spec
    type:               exitcode-stdio-1.0

    main-is:            Spec.hs

    other-modules:      Monzo.MonzoSpec,
                        Monzo.Server

    build-depends:      base >=4.8 && <4.9,
                        monzo == 0.4.*,
                        servant >= 0.6,
                        servant-client >= 0.6,
                        servant-server >= 0.6,
                        hspec,
                        wai >= 3.2,
                        warp >= 3.2,
                        transformers >= 0.4,
                        network >= 2.6,
                        time >= 1.5,
                        timerep >= 2.0

    hs-source-dirs:     test

    default-language:   Haskell2010

    default-extensions: MultiParamTypeClasses,
                        TypeFamilies,
                        TypeOperators,
                        FlexibleInstances,
                        ScopedTypeVariables