You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you remove comment out: fromServant <- makeHandler (serve itemApi server) event & ++ ByteString.unpack fromServant in src/Lib.hs the package will compile. Otherwise it fails with a linking error.
handler :: Event -> Context -> IO (Either String Response)
handler event context = do
fromServant <- makeHandler (serve itemApi server) event
pure $ Right Response
{ statusCode = 200
, body = "test: " ++ ByteString.unpack fromServant
}
The text was updated successfully, but these errors were encountered:
Check out the branches
persistent
andbeam
: https://github.com/Jimbo4350/serverless-servant-faultyIf you remove comment out:
fromServant <- makeHandler (serve itemApi server) event
&++ ByteString.unpack fromServant
insrc/Lib.hs
the package will compile. Otherwise it fails with a linking error.The text was updated successfully, but these errors were encountered: