Skip to content
Snippets Groups Projects
PaymentServer.cabal 3.08 KiB
Newer Older
name:                PaymentServer
version:             0.1.0.0
synopsis:            Coordinate entities for the purchase of PrivateStorage.io vouchers.
-- description:
homepage:            https://github.com/privatestorageio/PaymentServer#readme
license:             Apache-2.0
license-file:        LICENSE
author:              Jean-Paul Calderone
maintainer:          support@privatestorage.io
copyright:           2019 Private Storage.io, LLC.
category:            Web
build-type:          Simple
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     PaymentServer.Processors.Stripe
                     , PaymentServer.Issuer
                     , PaymentServer.Persistence
                     , PaymentServer.Redemption
Jean-Paul Calderone's avatar
Jean-Paul Calderone committed
                     , PaymentServer.Main
  build-depends:       base >= 4.7 && < 5
                     , aeson
                     , servant-server
                     , wai
                     , wai-extra
                     , data-default
  default-language:    Haskell2010
  ghc-options:       -Wmissing-import-lists -Wunused-imports
  pkgconfig-depends: ristretto

executable PaymentServer-exe
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wmissing-import-lists -Wunused-imports
  build-depends:       base
                     , PaymentServer
  default-language:    Haskell2010

test-suite PaymentServer-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Driver.hs
  other-modules:       SpecStripe
                     , Util.WAI
                     , Util.Gen
                     , Util.JSON
  build-depends:       base
                     , PaymentServer
                     , hspec
                     , hspec-wai
                     , hspec-wai-json
                     , stripe-core
                     , time
                     , QuickCheck
                     , quickcheck-instances
                     , wai-extra
                     , bytestring
                     , text
                     , http-types
                     , tasty
                     , tasty-th
                     , tasty-discover
                     , tasty-hspec
                     , servant-server
                     , containers
                     , unordered-containers
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wmissing-import-lists -Wunused-imports
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/privatestorageio/PaymentServer