Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Data.Aeson.Generic.decode unable to parse Data.Aeson.Generic.encode output (aeson-0.6.0.0) #75
The following is OK:
But there is a problem for more than one nullary constructor:
I didn't yet look at the code, but thought I'd make a note of it somewhere, as it's kind of a glaring issue.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I think I was able to reproduce this with Maybe types:
when I expected the first line of output to be successfully decoded. Encoded output certainly matches req1.
Spent quite a while debugging this - didn't get any sort of a type error or anything. I'd expect many people to use Generic decode/encode with Aeson since that is the one that needs a lot more typing compared to the HP Text.Json package.