It's using Text.Show.Pretty to do the pretty-printing. That works by
showing the value, and then trying to parse the string, and that parsing
must be failing for Repo.

Ah, I suspect this is because some of the data types used inside Repo
lack a Read instance. While I derived some of my own, in
Github.Data.Readable, Text.Show.Pretty will not see those orphan
instances, and so can't use them for reading things like GithubDate 
that are part of the Repo.

So, this needs to be fixed in the Github library. I actually already
filed a bug upstream requesting this; it was implemented; made things
slow somehow, and closed.
https://github.com/fpco/github/issues/4

There is also a bug report open upstream requesting it support
serializing the data back to JSON. Which would fix this nicely as a side
effect. https://github.com/fpco/github/issues/9

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to