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

Add insertUniqueEntity method #718

Merged
merged 4 commits into from
Oct 21, 2017

Conversation

cdepillabout
Copy link
Contributor

This PR adds a insertUniqueEntity helper method.

This is a combination of insertEntity and insertUnique:

insertEntity :: record -> ReaderT backend m (Entity record)

insertUnique :: record -> ReaderT backend m (Maybe (Key record))

insertUniqueEntity :: record -> ReaderT backend m (Maybe (Entity record))

@cdepillabout cdepillabout force-pushed the add-insert-unique-entity-method branch from 5ddaba7 to a56fa4a Compare October 21, 2017 08:35
@psibi
Copy link
Member

psibi commented Oct 21, 2017

Can you add @since haddock markup for the introduced function add add corresponding changelog ?

@cdepillabout
Copy link
Contributor Author

@psibi Thanks for the review. The @since annotation and changelog entry have been added in commit de5c7e1.

@psibi psibi merged commit bddb397 into yesodweb:master Oct 21, 2017
@psibi
Copy link
Member

psibi commented Oct 21, 2017

Thanks for the PR!

@cdepillabout cdepillabout deleted the add-insert-unique-entity-method branch October 24, 2017 17:09
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.

None yet

2 participants