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

More examples in schema-profunctor documentation #1539

Merged
merged 2 commits into from
May 28, 2021

Conversation

pcapriotti
Copy link
Contributor

I have added some more explanations and examples to the README of schema-profunctor. These should hopefully cover most of the situations encountered in wire-api.

fmap join (optional x)
= fmap join (fmap Just x <|> pure Nothing)
= fmap (join . Just) x <|> fmap join (pure Nothing)
= fmap id x <|> pure (join Nothing)
= x <|> pure Nothing
@pcapriotti pcapriotti merged commit 021f2e4 into develop May 28, 2021
@pcapriotti pcapriotti deleted the pcapriotti/schema-documentation branch May 28, 2021 05:59
@fisx fisx mentioned this pull request May 31, 2021
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