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

Do not error on any AppT in sqlMaybeSelectProcessRowDec #406

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

csamak
Copy link
Contributor

@csamak csamak commented Nov 26, 2024

No need to be this restrictive in deriveEsqueletoRecord For example, AppT ListT _ and AppT (ConT _) _ are both fine but would throw an error here before this change.

Before submitting your PR, check that you've:

After submitting your PR:

  • Update the Changelog.md file with a link to your PR.
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts).

((ConT ((==) ''Maybe -> True)) `AppT` _inner) -> AppE (ConE 'Just)
(ConT _) -> id
(AppT _ _) -> id
_ -> error $ show x
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to keep the error here? I feel like we may want to just have id as the fallback case instead of erroring on unknown constructors

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 agree, done. only had the error in the first place to be more similar to pre-existing behavior.

Copy link
Collaborator

@parsonsmatt parsonsmatt left a comment

Choose a reason for hiding this comment

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

hell yeah! Let's make a patch version bump + changelog entry and I'll get this released + deprecate the Hackage versions.

No need to be this restrictive in deriveEsqueletoRecord
For example, AppT ListT _ and AppT (ConT _) _ are both fine but would
throw an error here before this change.
changelog.md Outdated Show resolved Hide resolved
esqueleto.cabal Outdated Show resolved Hide resolved
@parsonsmatt parsonsmatt merged commit 2b8f2cf into bitemyapp:master Dec 5, 2024
8 checks passed
@parsonsmatt
Copy link
Collaborator

Tested on the work codebase, all good! Uploaded as 3.5.13.1

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