Skip to content

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

2 participants