cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.35.1.
--
-- see: https://github.com/sol/hpack

name:           zgo-backend
version:        1.8.0
synopsis:       Haskell Back-end for the ZGo point-of-sale application
description:    Please see the README at <https://git.vergara.tech/Vergara_Tech//zgo-backend#readme>
category:       Web
author:         Rene Vergara
maintainer:     rene@vergara.network
copyright:      Copyright (c) 2023 Vergara Technologies LLC
license:        BOSL
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    zgo.cfg

source-repository head
  type: git
  location: https://git.vergara.tech/Vergara_Tech/zgo-backend

library
  exposed-modules:
      Config
      Item
      LangComponent
      Order
      Owner
      Payment
      User
      WooCommerce
      Xero
      ZGoBackend
      ZGoTx
  other-modules:
      Paths_zgo_backend
  hs-source-dirs:
      src
  build-depends:
      QuickCheck
    , aeson
    , array
    , base >=4.7 && <5
    , base64-bytestring
    , blake3
    , bson
    , bytestring
    , configurator
    , containers
    , crypto-rng
    , ghc-prim
    , hexstring
    , http-conduit
    , http-types
    , jwt
    , megaparsec
    , memory
    , mongoDB
    , network
    , quickcheck-instances
    , random
    , regex-base
    , regex-compat
    , scientific
    , scotty
    , securemem
    , text
    , time
    , unordered-containers
    , uuid
    , vector
    , wai
    , wai-cors
    , wai-extra
    , warp-tls
    , zcash-haskell
  default-language: Haskell2010

executable zgo-backend-exe
  main-is: Server.hs
  other-modules:
      Tasks
      TokenRefresh
      Paths_zgo_backend
  hs-source-dirs:
      app
  ghc-options: -main-is Server -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:
      aeson
    , base
    , bytestring
    , configurator
    , http-conduit
    , http-types
    , megaparsec
    , mongoDB
    , scotty
    , securemem
    , text
    , time
    , wai-extra
    , warp
    , warp-tls
    , zgo-backend
  default-language: Haskell2010

executable zgo-tasks
  main-is: Tasks.hs
  other-modules:
      Server
      TokenRefresh
      Paths_zgo_backend
  hs-source-dirs:
      app
  ghc-options: -main-is Tasks -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:
      base
    , megaparsec
    , mongoDB
    , scotty
    , time
    , warp
    , warp-tls
    , zgo-backend
  default-language: Haskell2010

executable zgo-token-refresh
  main-is: TokenRefresh.hs
  other-modules:
      Server
      Tasks
      Paths_zgo_backend
  hs-source-dirs:
      app
  ghc-options: -main-is TokenRefresh -threaded -rtsopts -with-rtsopts=-N -Wall
  build-depends:
      aeson
    , base
    , bytestring
    , configurator
    , http-conduit
    , http-types
    , megaparsec
    , mongoDB
    , scotty
    , securemem
    , text
    , time
    , wai-extra
    , warp
    , warp-tls
    , zgo-backend
  default-language: Haskell2010

test-suite zgo-backend-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_zgo_backend
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N -main-is Spec
  build-depends:
      QuickCheck
    , aeson
    , base >=4.7 && <5
    , bytestring
    , configurator
    , hspec
    , hspec-expectations-json
    , hspec-wai
    , http-conduit
    , http-types
    , megaparsec
    , mongoDB
    , scotty
    , securemem
    , text
    , time
    , uuid
    , zcash-haskell
    , zgo-backend
  default-language: Haskell2010