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
{{ message }}
Repository navigation
Servant & beam: `gcc' failed in phase Linker'` #51
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
}
Activity