| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 22:26:13 GMT
X-Served-By: cache-dfw-kdfw8210071-DFW, cache-bom-vanm7210054-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768688773.059723,VS0,VE774
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
aws-lambda-haskell-runtime-wai: Run wai applications on AWS Lambda
[Skip to Readme]
aws-lambda-haskell-runtime-wai
aws-lambda-haskell-runtime-wai: Run wai applications on AWS Lambda
Please see the README on GitHub at https://github.com/eir-forsakring/aws-lambda-haskell-runtime-wai#readme
[Skip to Readme]
Downloads
- aws-lambda-haskell-runtime-wai-2.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.0.1, 2.0.2 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | aeson, aws-lambda-haskell-runtime (>=4.0.0), base (>=4.7 && <5), binary, bytestring, case-insensitive, http-types, iproute, network, text, unordered-containers, vault, wai [details] |
| License | BSD-3-Clause |
| Copyright | Eir Försäkring |
| Author | Dobromir Nikolov |
| Maintainer | dnikolovv@hotmail.com |
| Uploaded | by dnikolovv at 2021-06-30T16:09:31Z |
| Category | AWS |
| Home page | https://github.com/eir-forsakring/aws-lambda-haskell-runtime-wai#readme |
| Bug tracker | https://github.com/eir-forsakring/aws-lambda-haskell-runtime-wai/issues |
| Source repo | head: git clone https://github.com/eir-forsakring/aws-lambda-haskell-runtime-wai |
| Distributions | LTSHaskell:2.0.2, NixOS:2.0.2, Stackage:2.0.2 |
| Downloads | 1555 total (24 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2021-06-30 [all 1 reports] |
Readme for aws-lambda-haskell-runtime-wai-2.0.2
[back to package description]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
waiHandlerfunction fromAWS.Lambda.Waito convert yourwaiapplication 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