/purescript-aws-lambda

Write your AWS Lambda in PureScript!

Primary LanguagePureScript

purescript-aws-lambda

Purescript integration for AWS Lambda.

Context

foreign import data Context :: *

Wraps the context object provided by AWS Lambda.

LAMBDA

foreign import data LAMBDA :: !

Defines side effects for dealing with AWS Lambda.

forall eff. Eff (lambda :: LAMBDA | eff)

succeed

foreign import succeed :: forall eff. Context -> String -> Eff (lambda :: LAMBDA | eff) Unit

Called when your Lambda has finished processing successfully.

fail

foreign import fail :: forall eff. Context -> String -> Eff (lambda :: LAMBDA | eff) Unit

Called when your Lambda has completed processing with an error.