We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We use aeson-1.4.7.1.
The following code raises an exception:
for the type: data = Field {field :: Text} field .: "fieldName" .!= "" raises an exception.
data = Field {field :: Text}
field .: "fieldName" .!= ""
It would be great if this could raise an compile error instead.
The text was updated successfully, but these errors were encountered:
I don't understand. What you mean by raises an exception?
Please provide a complete reproducer.
Sorry, something went wrong.
If i have a JSON record that looks like the following: { "fieldName": null }
{ "fieldName": null }
If i use the parser: field .: "fieldName" .!= "" it will compile. But it will always raise an JSONConversionException: "key "fieldName" not found"
I would like to get an compile error, as this code is not valid. The parser should use the parser for Maybe values: field .:? "fieldName" .!= ""
field .:? "fieldName" .!= ""
I can code a minimal example if you need more clarification.
No branches or pull requests
We use aeson-1.4.7.1.
The following code raises an exception:
for the type:
data = Field {field :: Text}
field .: "fieldName" .!= ""
raises an exception.It would be great if this could raise an compile error instead.
The text was updated successfully, but these errors were encountered: