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

Need an option to cast string to int #990

Open
yaitskov opened this issue Jan 27, 2023 · 1 comment
Open

Need an option to cast string to int #990

yaitskov opened this issue Jan 27, 2023 · 1 comment

Comments

@yaitskov
Copy link

Hi,

I upgrade aeson to version 2.0.3.0 and gogol-1.0 fails because data type has an int64 field, but value is "0"

    inputStages :: (Core.Maybe [Core.Int64]),
  }  deriving (Core.Eq, Core.Show, Core.Generic)

@phadej
Copy link
Collaborator

phadej commented Feb 11, 2023

I don't understand the issue.

Is this a regression between aeson-1.5 and aeson-2.0? I don't think so, as aeson never (AFAIK) accepted textual strings as numbers.

Neither you tell how decoding is done. Using generically derived instance?

In any case this seems like an issue in gogol.

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

No branches or pull requests

2 participants