Skip to content

Vlix/backend compatible#893

Merged
parsonsmatt merged 30 commits intomasterfrom
vlix/backend-compatible
Apr 16, 2019
Merged

Vlix/backend compatible#893
parsonsmatt merged 30 commits intomasterfrom
vlix/backend-compatible

Conversation

@parsonsmatt
Copy link
Collaborator

A continuation of #886

Vlix and others added 29 commits March 1, 2018 14:21
* Upgraded the randomValues function in DataTestTypes.hs to actually have random values everytime
* small OCD
Copy link
Contributor

@Vlix Vlix left a comment

Choose a reason for hiding this comment

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

Found two things. Trivial though.

Anything I still need to look at? Didn't have any time today, but could work on it tomorrow, I think.

-- Returns also the identifiers.
selectSourceRes
:: (PersistRecordBackend record backend, MonadIO m1, MonadIO m2)
:: (PersistEntity record, PersistRecordBackend record backend, MonadIO m1, MonadIO m2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this redundant? PersistRecordBackend record backend is a synonym for PersistEntity Record and something else iirc


-- | Get just the first record for the criterion.
selectFirst :: (MonadIO m, PersistRecordBackend record backend)
selectFirst :: (MonadIO m, PersistEntity record, PersistRecordBackend record backend)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! I've pruned those constraints.

@parsonsmatt parsonsmatt merged commit 1f20fc9 into master Apr 16, 2019
@parsonsmatt parsonsmatt deleted the vlix/backend-compatible branch February 14, 2020 16:53
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.

3 participants