packages feed

now-haskell-0.1.0.0: now-haskell.cabal

name:           now-haskell
version:        0.1.0.0
synopsis:       Zeit Now haskell-side integration and introspection tools.
description:    .
                Client library for calling the AWS Lambda Runtime API API based on http-client.
                .
                host: localhost
                .
                base path: http://localhost/2018-06-01
                .
                AWS Lambda Runtime API API version: 1.0.3
                .
                OpenAPI version: 3.0.0
                .
category:       Web
author:         Ian Duncan
maintainer:     ian@iankduncan.com
copyright:      2019 - Ian Duncan
license:        MIT
build-type:     Simple
cabal-version:  >= 1.10

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.6
    , http-client-tls
    , http-media >= 0.4 && < 0.8
    , 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 && <2.9
    , random >=1.1
    , safe-exceptions <0.2
    , text >=0.11 && <1.3
    , time >=1.5 && <1.10
    , transformers >=0.4.0.0
    , unordered-containers
    , vector >=0.10.9 && <0.13
    , memory
    , wai
  other-modules:
      Paths_now_haskell
      AWSLambdaRuntime
      AWSLambdaRuntime.API
      AWSLambdaRuntime.API.ApiDefault
      AWSLambdaRuntime.Client
      AWSLambdaRuntime.Core
      AWSLambdaRuntime.Logging
      AWSLambdaRuntime.MimeTypes
      AWSLambdaRuntime.Model
      AWSLambdaRuntime.ModelLens
  exposed-modules:
      Zeit.Now
  default-language: Haskell2010

  if flag(UseKatip)
      build-depends: katip >=0.8 && < 1.0
      other-modules: AWSLambdaRuntime.LoggingKatip
      cpp-options: -DUSE_KATIP
  else
      build-depends: monad-logger >=0.3 && <0.4
      other-modules: AWSLambdaRuntime.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:
      aws-lambda-runtime
    , 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 module-scanner
  main-is: Main.hs
  other-modules:       CabalScanner,
                       ModuleScanner
  default-extensions:  OverloadedStrings,
                       FlexibleContexts,
                       FlexibleInstances
  hs-source-dirs:
      src
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5.0
    , containers
    , Cabal
    , ghc-lib-parser
    , yaml
    , aeson
    , aeson-pretty
    , stack
    , fused-effects
    , bytestring
    , text
    , filepath
    , directory
  default-language: Haskell2010