镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

StandaloneLambdaResponseBody seems impossible to construct #108

Open

Description

@tysonzero

I'm on an older version of this library using runLambda, StandaloneLambdaResult and toStandaloneLambdaResponse.

Now that I'm upgrading to a newer library version, I have no clue how to keep my code working. StandaloneLambdaResponseBody seems impossible to construct, and I need it for the StandaloneLambdaResult constructor of LambdaResult.

Activity

  1. NickSeagull commented on Oct 27, 2021

    @NickSeagull
    Contributor

    Hey! Thanks for reporting :)

    Have you tried doing a toStandaloneLambdaResponse <yourResult>? There is a type class ToStandaloneLambdaResponseBody that will make ByteStrings/Texts or any type that implements ToJSON returnable from your handler

  2. tysonzero commented on Oct 27, 2021

    @tysonzero
    Author

    toStandaloneLambdaResponse isn't exported by any public modules anymore.

  3. NickSeagull commented on Oct 28, 2021

    @NickSeagull
    Contributor

    Woops! Let's keep the conversation going in #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions