Popularity
6.2
Stable
Activity
0.0
Stable
13
3
5
Monthly Downloads: 16
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
AWS
Latest version: v1.0.2
aws-lambda-haskell-runtime-wai alternatives and similar packages
Based on the "AWS" category.
Alternatively, view aws-lambda-haskell-runtime-wai alternatives based on common mentions on social networks and blogs.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of aws-lambda-haskell-runtime-wai or a related project?
README
aws-lambda-haskell-runtime-wai

Quick start
- Set up your project to use AWS Lambda by following the instructions on the aws-lambda-haskell-runtime website.
- Use the
waiHandler
function fromAWS.Lambda.Wai
to convert yourwai
application to a handler. There are two ways to do this.
-- 1. Pass in the initializeApplicationFunction
-- this will call initializeApplication per each call
handler :: WaiHandler ()
handler = waiHandler initializeApplication
-- Wai application initialization logic
initializeApplication :: IO Application
initializeApplication = ...
-- 2. Store the Application inside your custom context and provide a getter function
-- this will initialize the application once per cold start and keep it alive while the lambda is warm
handler :: WaiHandler MyAppConfig
handler = waiHandler' getWaiApp
data MyAppConfig =
MyAppConfig
{ getWaiApp :: Application }
For a complete example see theam/aws-lambda-haskell-runtime/tree/master/examples/wai-app