-
Notifications
You must be signed in to change notification settings - Fork 48
Code generation with generateLambdaDispatcher leads to warnings (Update: Addressed by upcoming 4.0.0) #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Okay, I think the actual issue, is that the
Will look into it |
I tried to inline the generated code, but it looks like that's not possible because
|
This (minimal) apigateway example: initializeContext :: IO ()
initializeContext = return ()
handler
:: ApiGatewayRequest Text
-> Context ()
-> IO (Either (ApiGatewayResponse Text) (ApiGatewayResponse Text))
handler request context = return $ Right $ mkApiGatewayResponse 200 "OK"
generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions results in:
|
Okay, I think the issue might actually be, that the formatting of the type signature is in multiple lines. The project is formatted with
Formatting it like this, is working.
|
With the handler being recognized there are less warnings:
Sorry for spamming comments :) |
Hey! Thanks so much for writing such a detailed issue! I'm currently working on #81 so all Template Haskell code will go away, and with it, all the warnings :) |
Nice. I had a look at the changes, and it looks like the search for I'd leave this issue open for documentation and close it with the rel are of |
With
I'm currently seeing these warnings:
Is it possible to get rid of them?
Version 3.0.1
The text was updated successfully, but these errors were encountered: