You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that Data.Aeson and Data.Yaml are not supposed to work with same data types, however at least shouldn't the expected data types for Data.Yaml be consistent with what's shown in the examples/ section? (or more likely the reverse, shouldn't the examples reflect the actually expected data types)
When I try to run e.g. examples/Simple.hs it gives the error I mentioned above.
I can't see how the error message you mentioned can be generated from the code. Please provide exact code you're running, exactly library versions, and exact error messages. I'm fairly certain you're running a different bit of code than what is in the repo. For real reproducibility, you should include a Stack script (https://www.fpcomplete.com/haskell/tutorial/stack-script/).
The expected type for
decodeThrow
seems to beData.ByteString.Internal.ByteString
which seems to be inconsistent with whatData.Json.decode
expects:It also seems to contradict what the examples in the
examples/
folder are showing, notably inSimple.hs
.Am I missing something, or should we adapt the documentation and examples to reflect this?
The text was updated successfully, but these errors were encountered: