Skip to content

Conversation

@nsaunders
Copy link
Contributor

@nsaunders nsaunders commented May 30, 2021

See #7.

Comment on lines 213 to 221
Aff.runAff_
(
case _ of
Left e -> liftEffect do
logger.logError $ message e
writeResponse res (internalError (StringBody ""))
_ ->
pure unit
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the change from launchAff_ to runAff_ to be necessary in case runM throws an error. The practical difference is that runAff_ allows errors to be handled where launchAff_ results in the server crashing.

@hoodunit
Copy link
Owner

This seems good on the face of it, but I'll give it a better look over when I get the chance.

@nsaunders
Copy link
Contributor Author

@hoodunit I just noticed that you updated Payload to work with v0.15, which is wonderful! If I resolve the conflicts in this PR, would you consider merging?

@hoodunit
Copy link
Owner

@nsaunders I know I said this last time as well, but yes, I will give it a try and get back to you. I've been working with this library a bit more actively lately. My main concern is to make sure it doesn't make the compiler errors even more gnarly and maybe to see if/how this should work on the client as well.

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

Successfully merging this pull request may close these issues.

2 participants