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

Better error messages when conversion would result in loss of information #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LaurentRDC
Copy link

Hello,

This PR gives a slightly better error message when trying to convert from a SQL type to a Haskell type that would result in a loss of information.

This arose in haskell-beam/beam#700 (comment) where conversion from SQL NUMERIC to Haskell Double gave an error that might be confusing.

@LaurentRDC LaurentRDC changed the title Better error messages when conversion results in loss of information Better error messages when conversion would result in loss of information Oct 10, 2024
@phadej
Copy link
Collaborator

phadej commented Oct 13, 2024

attoFieldParser is a public function, so this is a breaking change. Its value doesn't pull the weight of breaking change alone, so I'll hold this until there are other reasons to do major release.

@LaurentRDC
Copy link
Author

Ahhh I didn't realize this would be a breaking change. No worries then, happy to wait.

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