From 85117cc1675a4ca4e32ff010ff19627711bb45c0 Mon Sep 17 00:00:00 2001 From: Christophe Date: Thu, 11 Jan 2024 09:47:07 +0100 Subject: [PATCH] Update 03-configuring-the-dispatcher.md Fixed using HandlerName constructor --- doc/03-configuring-the-dispatcher.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/03-configuring-the-dispatcher.md b/doc/03-configuring-the-dispatcher.md index 72d9deb..d11edae 100644 --- a/doc/03-configuring-the-dispatcher.md +++ b/doc/03-configuring-the-dispatcher.md @@ -30,6 +30,7 @@ For the person validator example we set up in the previous section, it will look ```haskell import Aws.Lambda import qualified Lib +import qualified Data.Text as T main :: IO () main = @@ -38,5 +39,5 @@ main = (pure ()) id $ do -- You could also register multiple handlers - addStandaloneLambdaHandler "handler" Lib.handler -``` \ No newline at end of file + addStandaloneLambdaHandler (HandlerName $ T.pack "handler") Lib.handler +```