Skip to content

Code generation with generateLambdaDispatcher leads to warnings (Update: Addressed by upcoming 4.0.0) #82

Open
@andys8

Description

@andys8

With

generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions

I'm currently seeing these warnings:

/app/Main.hs:58:1: warning: [-Wunused-matches]
    Defined but not used: ‘executionUuid’
   |
58 | generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/app/Main.hs:58:1: warning: [-Wunused-matches]
    Defined but not used: ‘eventObject’
   |
58 | generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/app/Main.hs:58:1: warning: [-Wunused-matches]
    Defined but not used: ‘contextObject’
   |
58 | generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/app/Main.hs:58:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      run :: Applicative f =>
             LambdaOptions context
             -> f (Either
                     aws-lambda-haskell-runtime-3.0.1:Aws.Lambda.Runtime.Common.LambdaError
                     b)
   |
58 | generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/app/Main.hs:58:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: main :: IO ()
   |
58 | generateLambdaDispatcher UseWithAPIGateway defaultDispatcherOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is it possible to get rid of them?

Version 3.0.1

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