packages feed

neptune-backend-0.1.2: neptune-backend.cabal

cabal-version:  2.2
name:           neptune-backend
version:        0.1.2
synopsis:       Neptune Client
description:    .
                Client library for calling the Neptune API based on http-client.
                .
                Neptune Backend API API version: 2.8
                .
                OpenAPI version: 3.0.1
                .
category:       Web
author:         Jiasen Wu
maintainer:     jiasenwu@hotmail.com
copyright:      2020 - Jiasen Wu
license:        BSD-3-Clause
build-type:     Simple

extra-source-files:
    README.md
    openapi.yaml

Flag UseKatip
  Description: Use the katip package to provide logging (if false, use the default monad-logger package)
  Default:     True
  Manual:      True

library
  hs-source-dirs:
      lib
  ghc-options: -Wall -funbox-strict-fields
  build-depends:
      aeson >=1.0 && <2.0
    , base >=4.7 && <5.0
    , base64-bytestring >1.0 && <2.0
    , bytestring >=0.10.0 && <0.11
    , case-insensitive
    , containers >=0.5.0.0 && <0.8
    , deepseq >= 1.4 && <1.6
    , exceptions >= 0.4
    , http-api-data >= 0.3.4 && <0.5
    , http-client >=0.5 && <0.7
    , http-client-tls
    , http-media >= 0.4 && < 0.9
    , http-types >=0.8 && <0.13
    , iso8601-time >=0.1.3 && <0.2.0
    , microlens >= 0.4.3 && <0.5
    , mtl >=2.2.1
    , network >=2.6.2 && <3.9
    , random >=1.1
    , safe-exceptions <0.2
    , text >=0.11 && <1.3
    , time >=1.5
    , transformers >=0.4.0.0
    , unordered-containers
    , vector >=0.10.9 && <0.13
    , lens
    , lens-aeson
    , rio
    , modern-uri
    , jwt
    , req
    , envy
    , uuid
    , concurrent-extra
  other-modules:
      Paths_neptune_backend
  autogen-modules:
      Paths_neptune_backend
  exposed-modules:
      Neptune
      Neptune.Client
      Neptune.Channel
      Neptune.OAuth
      Neptune.Session
      Neptune.Utils
      Neptune.Backend.API
      Neptune.Backend.API.ApiDefault
      Neptune.Backend.Client
      Neptune.Backend.Core
      Neptune.Backend.Logging
      Neptune.Backend.MimeTypes
      Neptune.Backend.Model
      Neptune.Backend.ModelLens
  default-language: Haskell2010
  default-extensions:  OverloadedStrings

  if flag(UseKatip)
      build-depends: katip >=0.8 && < 1.0
      other-modules: Neptune.Backend.LoggingKatip
      cpp-options: -DUSE_KATIP
  else
      build-depends: monad-logger >=0.3 && <0.4
      other-modules: Neptune.Backend.LoggingMonadLogger
      cpp-options: -DUSE_MONAD_LOGGER

test-suite tests
  type: exitcode-stdio-1.0
  main-is: Test.hs
  hs-source-dirs:
      tests
  ghc-options: -Wall -fno-warn-orphans
  build-depends:
      neptune-backend
    , QuickCheck
    , aeson
    , base >=4.7 && <5.0
    , bytestring >=0.10.0 && <0.11
    , containers
    , hspec >=1.8
    , iso8601-time
    , mtl >=2.2.1
    , semigroups
    , text
    , time
    , transformers >=0.4.0.0
    , unordered-containers
    , vector
  other-modules:
      ApproxEq
      Instances
      PropMime
  default-language: Haskell2010

executable example-app
  hs-source-dirs:      examples
  main-is:             Main.hs
  ghc-options:         -Wall
  build-depends:       base
                     , mtl
                     , rio
                     , neptune-backend
  default-extensions:  OverloadedStrings
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/pierric/neptune-hs