Skip to content
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

Servant & beam: `gcc' failed in phase Linker'` #51

Open
Jimbo4350 opened this issue Nov 2, 2019 · 0 comments
Open

Servant & beam: `gcc' failed in phase Linker'` #51

Jimbo4350 opened this issue Nov 2, 2019 · 0 comments

Comments

@Jimbo4350
Copy link

Check out the branches persistent and beam: https://github.com/Jimbo4350/serverless-servant-faulty

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
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant