[Haskell-cafe] [ANN] wai-handler-hal- - Wrap a WAI Application to run on AWS Lambda

Jack Kelly jack.kelly at bellroy.com
Thu Apr 15 04:57:47 UTC 2021

I have just pushed an initial release of wai-handler-hal[1] to

This library lets you run `wai` `Application`s on AWS Lambda, using
the proxy integration features of an API Gateway REST API. This allows
you to write your APIs using tools like `servant`, test them locally
using `warp`, and then build deployment binaries using `hal`.

There's an especially nice payoff when you use `servant`: it's very
easy to test the entire API locally using `warp`, but then split
endpoints into individual Lambda binaries. This means you can assign
minimal IAM policies to each Lambda when you deploy to AWS.

The library code, an example API, example deployment code (in AWS
CDK[2]), and extensive documentation are all available on GitHub[3];
bug reports and pull requests are welcome.


-- Jack

[1]: https://hackage.haskell.org/package/wai-handler-hal-
[2]: https://aws.amazon.com/cdk/
[3]: https://github.com/bellroy/wai-handler-hal

More information about the Haskell-Cafe mailing list