cabal-version:       2.2
name:                aws-lambda-runtime
version:             0

synopsis: Haskell on AWS Lambda Runtime API
category: AWS, Development
description:
  Make "native" Haskell AWS Lambda (using Runtime API).
  .
  * "AWS.Lambda.RuntimeAPI" is for writing lambdas
  .
  * "AWS.Lambda.RuntimeAPI.Package" is for packaging them.

homepage:     https://github.com/phadej/aws-lambda-haskell-runtime
bug-reports:  https://github.com/phadej/aws-lambda-haskell-runtime/issues
license:      Apache-2.0
license-file: LICENSE
author:       Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer:   Oleg Grenrus <oleg.grenrus@iki.fi>
copyright:    (c) 2018 Futurice, 2018 Oleg Grenrus

tested-with:  GHC ==8.2.2 || ==8.4.4 || ==8.6.2

source-repository head
  type:     git
  location: https://github.com/phadej/aws-lambda-haskell-runtime

library
  ghc-options:      -Wall
  hs-source-dirs:   src
  default-language: Haskell2010
  exposed-modules:
    AWS.Lambda.RuntimeAPI
    AWS.Lambda.RuntimeAPI.Package

  -- GHC boot libraries
  build-depends:
    , base              ^>=4.10.1.0 || ^>=4.11.1.0 || ^>=4.12.0.0
    , bytestring        ^>=0.10.8.2
    , containers        ^>=0.5.10.2 || ^>= 0.6.0.1
    , deepseq           ^>=1.4.3.0
    , text              ^>=1.2.3.0
    , time              ^>=1.8.0.2

  -- other dependencies
  build-depends:
    , aeson             ^>=1.4.2.0
    , async             ^>=2.2.1
    , base-compat       ^>=0.10.5
    , http-client       ^>=0.5.14
    , http-media        ^>=0.7.1.3
    , http-types        ^>=0.12.2

  -- for Package
  build-depends:
    , filepath    ^>=1.4.1.2
    , parsec      ^>=3.1.13.0
    , process     ^>=1.6.1.0
    , zip-archive ^>=0.4

executable example-lambda
  ghc-options:      -Wall
  hs-source-dirs:   example
  default-language: Haskell2010
  main-is:          Example.hs

  -- inherited dependencies
  build-depends:
    , base
    , aeson
    , aws-lambda-runtime
    , text

  -- additional dependencies
  build-depends:
    , lens        ^>=4.17
    , lens-aeson  ^>=1.0.2
