From b79113bf63637003b483b65e8611e893841b1fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hr=C4=8Dek?= Date: Wed, 24 Aug 2022 08:51:40 +0200 Subject: [PATCH] Commit cabal file to the repo to get rid of stack warning --- .gitignore | 1 - package.yaml | 46 ----------------- serverless-haskell.cabal | 107 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 47 deletions(-) delete mode 100644 package.yaml create mode 100644 serverless-haskell.cabal diff --git a/.gitignore b/.gitignore index 9e6ab77..81cc975 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ node_modules .serverless .stack-work -*.cabal /example-project/package-lock.json /integration-test/run /dist diff --git a/package.yaml b/package.yaml deleted file mode 100644 index f4b1716..0000000 --- a/package.yaml +++ /dev/null @@ -1,46 +0,0 @@ -name: serverless-haskell -category: AWS, Cloud, Network -maintainer: akotlyarov@seek.com.au -version: "0.12.6" -github: seek-oss/serverless-haskell -license: MIT -synopsis: Deploying Haskell code onto AWS Lambda using Serverless -description: Utilities to help process the events from AWS Lambda when deployed with the serverless-haskell plugin. -extra-source-files: -- README.md - -dependencies: - - base >= 4.7 && < 5 - - aeson - - aeson-casing - - amazonka-core ^>= 2.0 - - amazonka-kinesis ^>= 2.0 - - amazonka-s3 ^>= 2.0 - - bytestring - - case-insensitive - - containers - - http-client - - http-types - - iproute - - lens - - safe-exceptions - - text - - time - - unix - - unordered-containers - -library: - source-dirs: src - ghc-options: -Wall - -tests: - tests: - main: Spec.hs - source-dirs: test - ghc-options: -Wall - dependencies: - - serverless-haskell - - hspec - - hspec-discover - - raw-strings-qq - - transformers diff --git a/serverless-haskell.cabal b/serverless-haskell.cabal new file mode 100644 index 0000000..d6e7446 --- /dev/null +++ b/serverless-haskell.cabal @@ -0,0 +1,107 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.34.4. +-- +-- see: https://github.com/sol/hpack + +name: serverless-haskell +version: 0.12.6 +synopsis: Deploying Haskell code onto AWS Lambda using Serverless +description: Utilities to help process the events from AWS Lambda when deployed with the serverless-haskell plugin. +category: AWS, Cloud, Network +homepage: https://github.com/seek-oss/serverless-haskell#readme +bug-reports: https://github.com/seek-oss/serverless-haskell/issues +maintainer: akotlyarov@seek.com.au +license: MIT +license-file: LICENSE +build-type: Simple +extra-source-files: + README.md + +source-repository head + type: git + location: https://github.com/seek-oss/serverless-haskell + +library + exposed-modules: + AWSLambda + AWSLambda.Events + AWSLambda.Events.APIGateway + AWSLambda.Events.KinesisEvent + AWSLambda.Events.MessageAttribute + AWSLambda.Events.Records + AWSLambda.Events.S3Event + AWSLambda.Events.SNSEvent + AWSLambda.Events.SQSEvent + AWSLambda.Handler + AWSLambda.Orphans + Data.Aeson.Alternative + Data.Aeson.Embedded + Data.Aeson.TextValue + other-modules: + Paths_serverless_haskell + hs-source-dirs: + src + ghc-options: -Wall + build-depends: + aeson + , aeson-casing + , amazonka-core ==2.0.* + , amazonka-kinesis ==2.0.* + , amazonka-s3 ==2.0.* + , base >=4.7 && <5 + , bytestring + , case-insensitive + , containers + , http-client + , http-types + , iproute + , lens + , safe-exceptions + , text + , time + , unix + , unordered-containers + default-language: Haskell2010 + +test-suite tests + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + AWSLambda.Events.APIGatewaySpec + AWSLambda.Events.KinesisEventSpec + AWSLambda.Events.S3EventSpec + AWSLambda.Events.SNSEventSpec + AWSLambda.Events.SQSEventSpec + Data.Aeson.AlternativeSpec + Data.Aeson.EmbeddedSpec + Data.Aeson.TestUtil + Paths_serverless_haskell + hs-source-dirs: + test + ghc-options: -Wall + build-depends: + aeson + , aeson-casing + , amazonka-core ==2.0.* + , amazonka-kinesis ==2.0.* + , amazonka-s3 ==2.0.* + , base >=4.7 && <5 + , bytestring + , case-insensitive + , containers + , hspec + , hspec-discover + , http-client + , http-types + , iproute + , lens + , raw-strings-qq + , safe-exceptions + , serverless-haskell + , text + , time + , transformers + , unix + , unordered-containers + default-language: Haskell2010